Kaydet (Commit) 3695bf31 authored tarafından Brett Cannon's avatar Brett Cannon

Use __builtin__, not __builtins__.

üst 4af7dcf1
......@@ -21,7 +21,7 @@ class ExceptionClassTests(unittest.TestCase):
def test_inheritance(self):
# Make sure the inheritance hierarchy matches the documentation
exc_set = set()
for object_ in __builtins__.__dict__.values():
for object_ in __builtin__.__dict__.values():
try:
if issubclass(object_, BaseException):
exc_set.add(object_.__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment