diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-13 14:55:04 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-13 14:55:04 (GMT) |
commit | 0a5d9a29bbc2dbbab5a408ba5f592ea47894a5b2 (patch) | |
tree | bf57af7e75d3f76ce8668212cc6b5d737439312f /Lib/test/support.py | |
parent | 7395fcbb3fc081bd36cd05c842d86aea433b752f (diff) | |
download | cpython-0a5d9a29bbc2dbbab5a408ba5f592ea47894a5b2.zip cpython-0a5d9a29bbc2dbbab5a408ba5f592ea47894a5b2.tar.gz cpython-0a5d9a29bbc2dbbab5a408ba5f592ea47894a5b2.tar.bz2 |
Merged revisions 82850 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82850 | alexander.belopolsky | 2010-07-13 10:50:16 -0400 (Tue, 13 Jul 2010) | 1 line
Set sys.modules[name] to None instead of 0 to block module import.
........
Diffstat (limited to 'Lib/test/support.py')
-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 e3a3b38..1eb84eb 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -98,7 +98,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 |