From: Alexander Belopolsky Date: Tue, 13 Jul 2010 14:50:16 +0000 (+0000) Subject: Set sys.modules[name] to None instead of 0 to block module import. X-Git-Tag: v3.2a1~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=903396ee660679340e47f68d0da7b78d30c43480;p=python 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 83d7ba8017..558fbc2a18 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