Commits

Benjamin Peterson committed 1cbdb82

follow loader protocol correctly

  • Participants
  • Parent commits 890f24d

Comments (0)

Files changed (1)

pypy/module/imp/test/test_import.py

         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):