]> granicus.if.org Git - python/commitdiff
Fix resource warning in test_unicodedata. Patch by Brian Brazil.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 30 Oct 2010 14:24:33 +0000 (14:24 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 30 Oct 2010 14:24:33 +0000 (14:24 +0000)
Lib/test/test_unicodedata.py

index fd8a4c6ffbcd7b450901320a450e33fe748ffa45..209b3e057a43583b2c50481baeb0b79d857e32a3 100644 (file)
@@ -225,6 +225,7 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
         error = "SyntaxError: (unicode error) \\N escapes not supported " \
             "(can't load unicodedata module)"
         self.assertIn(error, popen.stderr.read().decode("ascii"))
+        popen.stderr.close()
 
     def test_decimal_numeric_consistent(self):
         # Test that decimal and numeric are consistent,