fixed finally state in distutils.test_util

This commit is contained in:
Tarek Ziadé 2009-10-24 15:19:03 +00:00
parent b9c1cfc428
commit 468f700af7
1 changed files with 1 additions and 1 deletions

View 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)