From 903396ee660679340e47f68d0da7b78d30c43480 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Tue, 13 Jul 2010 14:50:16 +0000 Subject: Set sys.modules[name] to None instead of 0 to block module import. --- Lib/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12