commit | 903396ee660679340e47f68d0da7b78d30c43480 | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Tue Jul 13 14:50:16 2010 +0000 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Tue Jul 13 14:50:16 2010 +0000 |
tree | c434249692aa63a216e095c647e02e0bcd63ee97 | |
parent | 9c558bcfd1a57dece1273889e438e1771bf632d4 [diff] |
Set sys.modules[name] to None instead of 0 to block module import.
diff --git a/Lib/test/support.py b/Lib/test/support.py index 83d7ba8..558fbc2 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py
@@ -109,7 +109,7 @@ orig_modules[name] = sys.modules[name] except KeyError: saved = False - sys.modules[name] = 0 + sys.modules[name] = None return saved