[pypy-svn] r56116 - in pypy/dist/pypy/interpreter: . test

exarkun at codespeak.net exarkun at codespeak.net
Fri Jun 27 14:16:42 CEST 2008


Author: exarkun
Date: Fri Jun 27 14:16:42 2008
New Revision: 56116

Modified:
   pypy/dist/pypy/interpreter/module.py
   pypy/dist/pypy/interpreter/test/test_module.py
Log:
test and fix for r56106

Modified: pypy/dist/pypy/interpreter/module.py
==============================================================================
--- pypy/dist/pypy/interpreter/module.py	(original)
+++ pypy/dist/pypy/interpreter/module.py	Fri Jun 27 14:16:42 2008
@@ -3,6 +3,7 @@
 """
 
 from pypy.interpreter.baseobjspace import Wrappable
+from pypy.interpreter.error import OperationError
 
 class Module(Wrappable):
     """A module."""

Modified: pypy/dist/pypy/interpreter/test/test_module.py
==============================================================================
--- pypy/dist/pypy/interpreter/test/test_module.py	(original)
+++ pypy/dist/pypy/interpreter/test/test_module.py	Fri Jun 27 14:16:42 2008
@@ -63,3 +63,5 @@
         assert r.startswith("<module '_exceptions' from ") and \
                'pypy/lib/_exceptions.py' in r and \
                r.endswith('>')
+        nofile = type(_exceptions)('nofile', 'foo')
+        assert repr(nofile) == "<module 'nofile' from ?>"



More information about the Pypy-commit mailing list