diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-10-30 21:17:24 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-10-30 21:17:24 (GMT) |
commit | cf9ca7f259e563a35886c0705860851fb0dd2bf1 (patch) | |
tree | 11184f716e4d3cb0a5cde1853f03106d8f1810c2 /Lib/test/test_pkgimport.py | |
parent | 3d89751c7aaa243fbc2ac4704ad6a620d65e63f6 (diff) | |
download | cpython-cf9ca7f259e563a35886c0705860851fb0dd2bf1.zip cpython-cf9ca7f259e563a35886c0705860851fb0dd2bf1.tar.gz cpython-cf9ca7f259e563a35886c0705860851fb0dd2bf1.tar.bz2 |
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
........
Diffstat (limited to 'Lib/test/test_pkgimport.py')
-rw-r--r-- | Lib/test/test_pkgimport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 60f5c32..803aa2b 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): |