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:
|
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)
|
||||||
|
|
Loading…
Reference in New Issue