Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2407:60e372e91498
Date: 2015-11-16 12:04 +0100
http://bitbucket.org/cffi/cffi/changeset/60e372e91498/
Log: Skip this test when run inside pypy, where there is no
../c/commontypes.c
diff --git a/testing/cffi1/test_commontypes.py
b/testing/cffi1/test_commontypes.py
--- a/testing/cffi1/test_commontypes.py
+++ b/testing/cffi1/test_commontypes.py
@@ -3,8 +3,11 @@
def getlines():
- f = open(os.path.join(os.path.dirname(cffi.__file__),
- '..', 'c', 'commontypes.c'))
+ try:
+ f = open(os.path.join(os.path.dirname(cffi.__file__),
+ '..', 'c', 'commontypes.c'))
+ except IOError:
+ py.test.skip("cannot find ../c/commontypes.c")
lines = [line for line in f.readlines() if line.strip().startswith('EQ(')]
f.close()
return lines
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit