Author: Armin Rigo <[email protected]>
Branch:
Changeset: r64851:4dce95a2e895
Date: 2013-06-11 13:33 +0200
http://bitbucket.org/pypy/pypy/changeset/4dce95a2e895/
Log: Add a simpler test (missing so far) that shows what I did to be
wrong.
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
@@ -565,6 +565,13 @@
assert sys.path is oldpath
assert 'setdefaultencoding' in dir(sys)
+ def test_reimport_builtin_simple_case(self):
+ import sys, time
+ time.foo = "bar"
+ del sys.modules['time']
+ import time
+ assert not hasattr(time, 'foo')
+
def test_reimport_builtin(self):
import sys, time
oldpath = sys.path
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit