[Python-checkins] r82850 - python/branches/py3k/Lib/test/support.py
alexander.belopolsky
python-checkins at python.org
Tue Jul 13 16:50:17 CEST 2010
Author: alexander.belopolsky
Date: Tue Jul 13 16:50:16 2010
New Revision: 82850
Log:
Set sys.modules[name] to None instead of 0 to block module import.
Modified:
python/branches/py3k/Lib/test/support.py
Modified: python/branches/py3k/Lib/test/support.py
==============================================================================
--- python/branches/py3k/Lib/test/support.py (original)
+++ python/branches/py3k/Lib/test/support.py Tue Jul 13 16:50:16 2010
@@ -109,7 +109,7 @@
orig_modules[name] = sys.modules[name]
except KeyError:
saved = False
- sys.modules[name] = 0
+ sys.modules[name] = None
return saved
More information about the Python-checkins
mailing list