Skip to content

Commit 2dc67a5

Browse files
skip functional tests in case of python3 :(
1 parent 4383e56 commit 2dc67a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/test_functional.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
import sys
2525

2626
def pytest_funcarg__child(request):
27-
pexpect = pytest.importorskip('pexpect')
27+
try:
28+
pexpect = pytest.importorskip('pexpect')
29+
except SyntaxError:
30+
pytest.skip('pexpect wont work on py3k')
2831
child = pexpect.spawn(sys.executable, ['-S'], timeout=10)
2932
child.logfile = sys.stdout
3033
child.sendline('from pyrepl.python_reader import main')

0 commit comments

Comments
 (0)