From: Antoine Pitrou Date: Sat, 30 Oct 2010 14:24:33 +0000 (+0000) Subject: Fix resource warning in test_unicodedata. Patch by Brian Brazil. X-Git-Tag: v3.2a4~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=849e12bfe943be4f18f5d0e21087b1cb08d472dd;p=python Fix resource warning in test_unicodedata. Patch by Brian Brazil. --- diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index fd8a4c6ffb..209b3e057a 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -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,