fixed finally state in distutils.test_util
This commit is contained in:
parent
b9c1cfc428
commit
468f700af7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue