Kaydet (Commit) 468f700a authored tarafından Tarek Ziadé's avatar Tarek Ziadé

fixed finally state in distutils.test_util

üst b9c1cfc4
...@@ -355,7 +355,7 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase): ...@@ -355,7 +355,7 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
try: try:
self.assertRaises(DistutilsByteCompileError, byte_compile, []) self.assertRaises(DistutilsByteCompileError, byte_compile, [])
finally: finally:
sys.dont_write_bytecode = False sys.dont_write_bytecode = old_dont_write_bytecode
def test_suite(): def test_suite():
return unittest.makeSuite(UtilTestCase) return unittest.makeSuite(UtilTestCase)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment