Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r61808:f29a51d5611b
Date: 2013-02-25 22:23 -0500
http://bitbucket.org/pypy/pypy/changeset/f29a51d5611b/

Log:    fix checkmodule (it was ignoring submodules)

diff --git a/pypy/objspace/fake/checkmodule.py 
b/pypy/objspace/fake/checkmodule.py
--- a/pypy/objspace/fake/checkmodule.py
+++ b/pypy/objspace/fake/checkmodule.py
@@ -11,5 +11,9 @@
         module = mod.Module(space, W_Root())
         for name in module.loaders:
             module._load_lazily(space, name)
+        for cls in module.submodules.itervalues():
+            submod = cls(space, W_Root())
+            for name in submod.loaders:
+                submod._load_lazily(space, name)
     #
     space.translates(**{'translation.list_comprehension_operations': True})
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to