summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_normalization.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-12-22 22:19:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-12-22 22:19:15 (GMT)
commit70df8f8c6779d0ecfd364b895ee6a422bc7699c5 (patch)
treeb82d340ec91bae19e7a3289bc46b24474d57135f /Lib/test/test_normalization.py
parenteaedfcb400dc00dd3f7c2983df749d63c8239e98 (diff)
downloadcpython-70df8f8c6779d0ecfd364b895ee6a422bc7699c5.zip
cpython-70df8f8c6779d0ecfd364b895ee6a422bc7699c5.tar.gz
cpython-70df8f8c6779d0ecfd364b895ee6a422bc7699c5.tar.bz2
Fix ResourceWarning in test_normalization
Diffstat (limited to 'Lib/test/test_normalization.py')
-rw-r--r--Lib/test/test_normalization.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py
index 13219e7..fa9611e 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]