]> granicus.if.org Git - python/commitdiff
Don't munge __debug__ and leave it that way.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 13 Nov 2001 22:03:20 +0000 (22:03 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 13 Nov 2001 22:03:20 +0000 (22:03 +0000)
Lib/test/test_compile.py

index e976a30dd5ff88af209a05ac9ddfb21381f44658..3801cacd87f804b6409c0043bd2c846e69c0d0c9 100644 (file)
@@ -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'