summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-30 21:03:18 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-10-30 21:03:18 (GMT)
commit1d7878a6963082222af16b131dc640bc7c17c0ee (patch)
treeef93beeadce83313a1e2293064b9efa6d42a0bc0
parentb6751dcff26281f25441d657963dc26ca08dee78 (diff)
downloadcpython-1d7878a6963082222af16b131dc640bc7c17c0ee.zip
cpython-1d7878a6963082222af16b131dc640bc7c17c0ee.tar.gz
cpython-1d7878a6963082222af16b131dc640bc7c17c0ee.tar.bz2
Fix #10256 - resource warning
-rw-r--r--Lib/test/test_pkgimport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py
index eab66fb..c37e936 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):