]> granicus.if.org Git - python/commit
When dealing with __import__ for detecting a global state change made by a
authorBrett Cannon <bcannon@gmail.com>
Sat, 12 Jun 2010 00:38:29 +0000 (00:38 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 12 Jun 2010 00:38:29 +0000 (00:38 +0000)
commit5976d975f8f16ebc7f5d218dfdcaf28411a4c0d2
tree920f396ebbd5d6ebef4e253c62e5935eda11ebfb
parent313a120ab6515f1bcddb13a9403a857078a9e474
When dealing with __import__ for detecting a global state change made by a
test, make sure to check if __builtins__ is a dict or not.

Discovered when running importlib.test.regrtest.
Lib/test/regrtest.py