mirror of
https://github.com/python/cpython.git
synced 2025-10-04 06:06:44 +00:00
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 ........
This commit is contained in:
parent
1cfc9c0ef3
commit
f492c36442
3 changed files with 8 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue