diff Lib/test/test_module.py @ 55647:4c51c4bffb21 3.1

Merged revisions 74459 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r74459 | benjamin.peterson | 2009-08-15 08:23:05 -0500 (Sat, 15 Aug 2009) | 9 lines Merged revisions 74457 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74457 | benjamin.peterson | 2009-08-15 08:16:38 -0500 (Sat, 15 Aug 2009) | 1 line #6707 fix a crash with dir() on an uninitialized module ........ ................
author Benjamin Peterson <benjamin@python.org>
date Sat, 15 Aug 2009 13:25:28 +0000
parents 0bb232078b8c
children a0951f11be3d
line wrap: on
line diff
--- a/Lib/test/test_module.py	Fri Aug 14 08:15:41 2009 +0000
+++ b/Lib/test/test_module.py	Sat Aug 15 13:25:28 2009 +0000
@@ -11,6 +11,7 @@
         # and __doc__ is None
         foo = ModuleType.__new__(ModuleType)
         self.assertTrue(foo.__dict__ is None)
+        self.assertRaises(SystemError, dir, foo)
         try:
             s = foo.__name__
             self.fail("__name__ = %s" % repr(s))