[svn r63302] avoiding a (what i think mostly) mac python setup issue
--HG-- branch : trunk
This commit is contained in:
parent
62905a1312
commit
33b283327d
|
@ -79,12 +79,14 @@ class TestMakegateway:
|
||||||
for trypath in ('python2.4', r'C:\Python24\python.exe'):
|
for trypath in ('python2.4', r'C:\Python24\python.exe'):
|
||||||
cpython24 = py.path.local.sysfind(trypath)
|
cpython24 = py.path.local.sysfind(trypath)
|
||||||
if cpython24 is not None:
|
if cpython24 is not None:
|
||||||
|
cpython24 = cpython24.realpath()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
py.test.skip("cpython2.4 not found")
|
py.test.skip("cpython2.4 not found")
|
||||||
gw = py.execnet.makegateway("popen//python=%s" % cpython24)
|
gw = py.execnet.makegateway("popen//python=%s" % cpython24)
|
||||||
rinfo = gw._rinfo()
|
rinfo = gw._rinfo()
|
||||||
assert rinfo.executable == cpython24
|
if py.std.sys.platform != "darwin": # it's confusing there
|
||||||
|
assert rinfo.executable == cpython24
|
||||||
assert rinfo.cwd == py.std.os.getcwd()
|
assert rinfo.cwd == py.std.os.getcwd()
|
||||||
assert rinfo.version_info[:2] == (2,4)
|
assert rinfo.version_info[:2] == (2,4)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue