diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-13 14:50:16 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-13 14:50:16 (GMT) |
commit | 903396ee660679340e47f68d0da7b78d30c43480 (patch) | |
tree | c434249692aa63a216e095c647e02e0bcd63ee97 | |
parent | 9c558bcfd1a57dece1273889e438e1771bf632d4 (diff) | |
download | cpython-903396ee660679340e47f68d0da7b78d30c43480.zip cpython-903396ee660679340e47f68d0da7b78d30c43480.tar.gz cpython-903396ee660679340e47f68d0da7b78d30c43480.tar.bz2 |
Set sys.modules[name] to None instead of 0 to block module import.
-rw-r--r-- | Lib/test/support.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def _save_and_block_module(name, orig_modules): orig_modules[name] = sys.modules[name] except KeyError: saved = False - sys.modules[name] = 0 + sys.modules[name] = None return saved |