diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-08-15 13:23:05 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-08-15 13:23:05 (GMT) |
commit | 1432771d55b286ad3d14115a002195ff75cedae2 (patch) | |
tree | a8468a74151bb0b64a996256f4579d666d0939a7 /Lib/test/test_module.py | |
parent | 1fff00832639082d2d7aa354c8e6d9110171d6bc (diff) | |
download | cpython-1432771d55b286ad3d14115a002195ff75cedae2.zip cpython-1432771d55b286ad3d14115a002195ff75cedae2.tar.gz cpython-1432771d55b286ad3d14115a002195ff75cedae2.tar.bz2 |
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
........
Diffstat (limited to 'Lib/test/test_module.py')
-rw-r--r-- | Lib/test/test_module.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py index 225e954..0e56290 100644 --- a/Lib/test/test_module.py +++ b/Lib/test/test_module.py @@ -11,6 +11,7 @@ class ModuleTests(unittest.TestCase): # 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)) |