mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Fix ResourceWarning in test_normalization
This commit is contained in:
parent
eaedfcb400
commit
70df8f8c67
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue