[pypy-commit] pyrepl py3ksupport: skip functional tests in case of python3 :(

RonnyPfannschmidt noreply at buildbot.pypy.org
Tue Nov 8 01:19:00 CET 2011


Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: py3ksupport
Changeset: r156:b2b0b52e2975
Date: 2011-11-08 01:18 +0100
http://bitbucket.org/pypy/pyrepl/changeset/b2b0b52e2975/

Log:	skip functional tests in case of python3 :(

diff --git a/testing/test_functional.py b/testing/test_functional.py
--- a/testing/test_functional.py
+++ b/testing/test_functional.py
@@ -24,7 +24,10 @@
 import sys
 
 def pytest_funcarg__child(request):
-    pexpect = pytest.importorskip('pexpect')
+    try:
+        pexpect = pytest.importorskip('pexpect')
+    except SyntaxError:
+        pytest.skip('pexpect wont work on py3k')
     child = pexpect.spawn(sys.executable, ['-S'], timeout=10)
     child.logfile = sys.stdout
     child.sendline('from pyrepl.python_reader import main')


More information about the pypy-commit mailing list