Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r2192:a010585333d4
Date: 2015-06-23 19:51 +0200
http://bitbucket.org/cffi/cffi/changeset/a010585333d4/

Log:    Fix tests for Python 3

diff --git a/testing/cffi1/test_new_ffi_1.py b/testing/cffi1/test_new_ffi_1.py
--- a/testing/cffi1/test_new_ffi_1.py
+++ b/testing/cffi1/test_new_ffi_1.py
@@ -1714,6 +1714,6 @@
         assert myvar == -5     # but can't be changed, so not very useful
         py.test.raises(ImportError, "from _test_import_from_lib.lib import 
bar")
         d = {}
-        exec "from _test_import_from_lib.lib import *" in d
+        exec("from _test_import_from_lib.lib import *", d)
         assert (set(key for key in d if not key.startswith('_')) ==
                 set(['myfunc', 'MYFOO']))
diff --git a/testing/cffi1/test_zdist.py b/testing/cffi1/test_zdist.py
--- a/testing/cffi1/test_zdist.py
+++ b/testing/cffi1/test_zdist.py
@@ -67,6 +67,8 @@
                 name += '.SO'
             if name.startswith('pycparser') and name.endswith('.egg'):
                 continue    # no clue why this shows up sometimes and not 
others
+            if name == '.eggs':
+                continue    # seems new in 3.5, ignore it
             assert name in content, "found unexpected file %r" % (
                 os.path.join(curdir, name),)
             value = content.pop(name)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to