From: Brian Curtin Date: Sat, 30 Oct 2010 21:03:18 +0000 (+0000) Subject: Fix #10256 - resource warning X-Git-Tag: v3.2a4~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d7878a6963082222af16b131dc640bc7c17c0ee;p=python Fix #10256 - resource warning --- diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index eab66fb158..c37e9362b0 100644 --- a/Lib/test/test_pkgimport.py +++ b/Lib/test/test_pkgimport.py @@ -29,7 +29,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):