From 70df8f8c6779d0ecfd364b895ee6a422bc7699c5 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 22 Dec 2010 22:19:15 +0000 Subject: [PATCH] Fix ResourceWarning in test_normalization --- Lib/test/test_normalization.py | 1 + 1 file changed, 1 insertion(+) 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]