From: Antoine Pitrou Date: Wed, 22 Dec 2010 22:19:15 +0000 (+0000) Subject: Fix ResourceWarning in test_normalization X-Git-Tag: v3.2rc1~373 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70df8f8c6779d0ecfd364b895ee6a422bc7699c5;p=thirdparty%2FPython%2Fcpython.git Fix ResourceWarning in test_normalization --- diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py index 13219e70df30..fa9611ea58ae 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]