diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-14 00:05:00 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-14 00:05:00 (GMT) |
commit | eeb666ccf3dce7c5b7fe693a4482436b292c8137 (patch) | |
tree | 1600e50cc57c3c5869f4b7e3b887c3260cf1d06c /Lib/test/test_support.py | |
parent | 8cb9f03ecba2379dc3d826955e419e49bd85c9b3 (diff) | |
download | cpython-eeb666ccf3dce7c5b7fe693a4482436b292c8137.zip cpython-eeb666ccf3dce7c5b7fe693a4482436b292c8137.tar.gz cpython-eeb666ccf3dce7c5b7fe693a4482436b292c8137.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/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 6e7853b..ce2b679 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -105,7 +105,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 |