Author: Armin Rigo <[email protected]>
Branch:
Changeset: r64854:ad3579cf28fe
Date: 2013-06-11 13:39 +0200
http://bitbucket.org/pypy/pypy/changeset/ad3579cf28fe/
Log: Easy fix
diff --git a/pypy/interpreter/mixedmodule.py b/pypy/interpreter/mixedmodule.py
--- a/pypy/interpreter/mixedmodule.py
+++ b/pypy/interpreter/mixedmodule.py
@@ -43,6 +43,7 @@
# the module was already imported. Refresh its content with
# the saved dict, as done with built-in and extension modules
# on CPython.
+ space.call_method(self.w_dict, 'clear')
space.call_method(self.w_dict, 'update', self.w_initialdict)
for w_submodule in self.submodules_w:
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
@@ -573,7 +573,6 @@
assert hasattr(time, 'tzset')
def test_reimport_builtin_simple_case_2(self):
- skip("fix me")
import sys, time
time.foo = "bar"
del sys.modules['time']
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit