summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/distutils/tests/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_util.py b/Lib/distutils/tests/test_util.py
index 4da1e65..55ef160 100644
--- a/Lib/distutils/tests/test_util.py
+++ b/Lib/distutils/tests/test_util.py
@@ -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)