skip pexpect tests on darwin

This commit is contained in:
holger krekel 2011-11-11 21:33:45 +00:00
parent 4f01cda2a7
commit 7f7589afa9
1 changed files with 2 additions and 0 deletions

View File

@ -516,6 +516,8 @@ class TmpTestdir:
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")
if sys.platform == "darwin":
pytest.xfail("pexpect does not work reliably on darwin?!")
logfile = self.tmpdir.join("spawn.out")
child = pexpect.spawn(cmd, logfile=logfile.open("w"))
child.timeout = expect_timeout