[pypy-commit] pypy py3.3: Fix test by pleasing sanity check.
mjacob
pypy.commits at gmail.com
Fri Feb 19 17:38:50 EST 2016
Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.3
Changeset: r82335:99af7e9c0c5f
Date: 2016-02-19 23:36 +0100
http://bitbucket.org/pypy/pypy/changeset/99af7e9c0c5f/
Log: Fix test by pleasing sanity check.
diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -487,6 +487,7 @@
import imp
pkg = imp.new_module('newpkg')
sys.modules['newpkg'] = pkg
+ sys.modules['newpkg.foo'] = imp.new_module('newpkg.foo')
mydict = {'__name__': 'newpkg.foo', '__path__': '/some/path'}
res = __import__('', mydict, None, ['bar'], 2)
assert res is pkg
More information about the pypy-commit
mailing list