moving py/bin to rootlevel bin/ and fixing tests

--HG--
branch : trunk
This commit is contained in:
holger krekel 2009-10-29 16:53:02 +01:00
parent cc15685015
commit 92d482069c
19 changed files with 5 additions and 3 deletions

View File

@ -301,7 +301,7 @@ class TmpTestdir:
return self.run(*fullargs)
def _getpybinargs(self, scriptname):
bindir = py.path.local(py.__file__).dirpath("bin")
bindir = py._impldir.dirpath('bin')
script = bindir.join(scriptname)
assert script.check()
return py.std.sys.executable, script

View File

@ -1,10 +1,12 @@
import py
import sys
binpath = py.path.local(py.__file__).dirpath("bin")
binwinpath = binpath.join("win32")
def setup_module(mod):
mod.binpath = py._impldir.dirpath('bin')
if not mod.binpath.check():
py.test.skip("bin-source scripts not installed")
mod.binwinpath = binpath.join("win32")
mod.tmpdir = py.test.ensuretemp(__name__)
mod.iswin32 = sys.platform == "win32"