diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py index 13219e70df3..fa9611ea58a 100644 --- a/Lib/test/test_normalization.py +++ b/Lib/test/test_normalization.py @@ -45,6 +45,7 @@ class NormalizationTest(unittest.TestCase): check=check_version) except (IOError, HTTPException): self.skipTest("Could not retrieve " + TESTDATAURL) + self.addCleanup(testdata.close) for line in testdata: if '#' in line: line = line.split('#')[0]