Commit fa3c2b46 authored by Armin Rigo's avatar Armin Rigo
Browse files

Fix tests for Python 3

parent ed37c9e07e1b
......@@ -1714,6 +1714,6 @@ class TestNewFFI1:
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']))
......@@ -67,6 +67,8 @@ class TestDist(object):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment