summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-11-13 22:03:20 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-11-13 22:03:20 (GMT)
commit79b5b5b7fb914e49965f0b5369070826ecc4605a (patch)
tree0986dc201660b9aa42e479fad3425959de7dfd92 /Lib/test/test_compile.py
parent88768483235beb5de12addee3d73d4e252f6f7cb (diff)
downloadcpython-79b5b5b7fb914e49965f0b5369070826ecc4605a.zip
cpython-79b5b5b7fb914e49965f0b5369070826ecc4605a.tar.gz
cpython-79b5b5b7fb914e49965f0b5369070826ecc4605a.tar.bz2
Don't munge __debug__ and leave it that way.
Diffstat (limited to 'Lib/test/test_compile.py')
-rw-r--r--Lib/test/test_compile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index e976a30..3801cac 100644
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -9,7 +9,9 @@ except SyntaxError:
pass
import __builtin__
+prev = __builtin__.__debug__
setattr(__builtin__, '__debug__', 'sure')
+setattr(__builtin__, '__debug__', prev)
if verbose:
print 'Running tests on argument handling'