[pypy-svn] r70478 - pypy/trunk/pypy/module/imp/test

benjamin at codespeak.net benjamin at codespeak.net
Sun Jan 10 18:09:42 CET 2010


Author: benjamin
Date: Sun Jan 10 18:09:42 2010
New Revision: 70478

Modified:
   pypy/trunk/pypy/module/imp/test/test_import.py
Log:
follow loader protocol correctly

Modified: pypy/trunk/pypy/module/imp/test/test_import.py
==============================================================================
--- pypy/trunk/pypy/module/imp/test/test_import.py	(original)
+++ pypy/trunk/pypy/module/imp/test/test_import.py	Sun Jan 10 18:09:42 2010
@@ -832,10 +832,10 @@
         class Importer(object):
             def find_module(self, fullname, path=None):
                 if fullname == "a":
-                    sys.modules["a"] = self
                     return self
 
             def load_module(self, name):
+                sys.modules[name] = sys
                 return sys
         
         def importer_for_path(path):



More information about the Pypy-commit mailing list