From cf9ca7f259e563a35886c0705860851fb0dd2bf1 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Sat, 30 Oct 2010 21:17:24 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 60f5c3255e..803aa2b695 100644 --- a/Lib/test/test_pkgimport.py +++ b/Lib/test/test_pkgimport.py @@ -22,7 +22,7 @@ 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__.py'), 'w') + open(os.path.join(self.package_dir, '__init__.py'), 'w').close() self.module_path = os.path.join(self.package_dir, 'foo.py') def tearDown(self): -- 2.49.0