summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-13 14:50:16 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-13 14:50:16 (GMT)
commit903396ee660679340e47f68d0da7b78d30c43480 (patch)
treec434249692aa63a216e095c647e02e0bcd63ee97 /Lib/test
parent9c558bcfd1a57dece1273889e438e1771bf632d4 (diff)
downloadcpython-903396ee660679340e47f68d0da7b78d30c43480.zip
cpython-903396ee660679340e47f68d0da7b78d30c43480.tar.gz
cpython-903396ee660679340e47f68d0da7b78d30c43480.tar.bz2
Set sys.modules[name] to None instead of 0 to block module import.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/support.py2
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