summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_module.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-08-15 13:18:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-08-15 13:18:47 (GMT)
commitf492c364427eb0224fa242ae938cc3cc98f7fe51 (patch)
tree1c9d61a95976cba1c55f2e2d58a1f4bac9598294 /Lib/test/test_module.py
parent1cfc9c0ef334a3add718a5e01d9658bdf3c9da6d (diff)
downloadcpython-f492c364427eb0224fa242ae938cc3cc98f7fe51.zip
cpython-f492c364427eb0224fa242ae938cc3cc98f7fe51.tar.gz
cpython-f492c364427eb0224fa242ae938cc3cc98f7fe51.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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py
index e0c7ec3..ac99773 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.failUnless(foo.__dict__ is None)
+ self.assertRaises(SystemError, dir, foo)
try:
s = foo.__name__
self.fail("__name__ = %s" % repr(s))