[pypy-commit] pypy default: Add a simpler test (missing so far) that shows what I did to be wrong.
arigo
noreply at buildbot.pypy.org
Tue Jun 11 13:39:47 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list