Fix ResourceWarning in test_normalization

This commit is contained in:
Antoine Pitrou 2010-12-22 22:19:15 +00:00
parent eaedfcb400
commit 70df8f8c67
1 changed files with 1 additions and 0 deletions

View File

@ -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]