mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Use __builtin__, not __builtins__.
This commit is contained in:
parent
4af7dcf10d
commit
3695bf316f
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class ExceptionClassTests(unittest.TestCase):
|
||||||
def test_inheritance(self):
|
def test_inheritance(self):
|
||||||
# Make sure the inheritance hierarchy matches the documentation
|
# Make sure the inheritance hierarchy matches the documentation
|
||||||
exc_set = set()
|
exc_set = set()
|
||||||
for object_ in __builtins__.__dict__.values():
|
for object_ in __builtin__.__dict__.values():
|
||||||
try:
|
try:
|
||||||
if issubclass(object_, BaseException):
|
if issubclass(object_, BaseException):
|
||||||
exc_set.add(object_.__name__)
|
exc_set.add(object_.__name__)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue