From 9f3cf269995cce0867a1a63b77b7f5985ad339fd Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Sat, 30 Oct 2010 21:07:42 +0000 Subject: Merged revisions 85984 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85984 | brian.curtin | 2010-10-30 16:03:18 -0500 (Sat, 30 Oct 2010) | 2 lines Fix #10256 - resource warning ........ --- Lib/test/test_pkgimport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 86ea058..30d48cd 100644 --- a/Lib/test/test_pkgimport.py +++ b/Lib/test/test_pkgimport.py @@ -22,7 +22,8 @@ class TestImport(unittest.TestCase): self.package_dir = os.path.join(self.test_dir, self.package_name) os.mkdir(self.package_dir) - open(os.path.join(self.package_dir, '__init__'+os.extsep+'py'), 'w') + open(os.path.join( + self.package_dir, '__init__'+os.extsep+'py'), 'w').close() self.module_path = os.path.join(self.package_dir, 'foo'+os.extsep+'py') def tearDown(self): -- cgit v0.12