diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-10-30 21:07:42 +0000 |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-10-30 21:07:42 +0000 |
commit | 9f3cf269995cce0867a1a63b77b7f5985ad339fd (patch) | |
tree | 84d3ae7fa5516e356fda3c87e6c4086f9484c4e7 | |
parent | 2ad17e19eec7f873005a215a00c13520c679d4fb (diff) | |
download | cpython-git-9f3cf269995cce0867a1a63b77b7f5985ad339fd.tar.gz |
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
........
-rw-r--r-- | Lib/test/test_pkgimport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 86ea0586e1..30d48cdcbb 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): |