make pytest test suite pypy ready
This commit is contained in:
parent
d894bae281
commit
96a687b97c
|
@ -515,6 +515,8 @@ class TmpTestdir:
|
||||||
|
|
||||||
def spawn(self, cmd, expect_timeout=10.0):
|
def spawn(self, cmd, expect_timeout=10.0):
|
||||||
pexpect = py.test.importorskip("pexpect", "2.4")
|
pexpect = py.test.importorskip("pexpect", "2.4")
|
||||||
|
if hasattr(sys, 'pypy_version_info') and '64' in py.std.platform.machine():
|
||||||
|
pytest.skip("pypy-64 bit not supported")
|
||||||
logfile = self.tmpdir.join("spawn.out")
|
logfile = self.tmpdir.join("spawn.out")
|
||||||
child = pexpect.spawn(cmd, logfile=logfile.open("w"))
|
child = pexpect.spawn(cmd, logfile=logfile.open("w"))
|
||||||
child.timeout = expect_timeout
|
child.timeout = expect_timeout
|
||||||
|
|
Loading…
Reference in New Issue