]> granicus.if.org Git - python/commitdiff
fixed finally state in distutils.test_util
authorTarek Ziadé <ziade.tarek@gmail.com>
Sat, 24 Oct 2009 15:19:03 +0000 (15:19 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Sat, 24 Oct 2009 15:19:03 +0000 (15:19 +0000)
Lib/distutils/tests/test_util.py

index 4da1e651ed52b3bf7b3d4d2ecc8256b48c24cad2..55ef160f3702128e23d0181f5f57ff056dc8aafc 100644 (file)
@@ -355,7 +355,7 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
         try:
             self.assertRaises(DistutilsByteCompileError, byte_compile, [])
         finally:
-            sys.dont_write_bytecode = False
+            sys.dont_write_bytecode = old_dont_write_bytecode
 
 def test_suite():
     return unittest.makeSuite(UtilTestCase)