[Python-checkins] r85985 - in python/branches/release27-maint: Lib/test/test_pkgimport.py
brian.curtin
python-checkins at python.org
Sat Oct 30 23:07:42 CEST 2010
Author: brian.curtin
Date: Sat Oct 30 23:07:42 2010
New Revision: 85985
Log:
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 (2010年10月30日) | 2 lines
Fix #10256 - resource warning
........
Modified:
python/branches/release27-maint/ (props changed)
python/branches/release27-maint/Lib/test/test_pkgimport.py
Modified: python/branches/release27-maint/Lib/test/test_pkgimport.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_pkgimport.py (original)
+++ python/branches/release27-maint/Lib/test/test_pkgimport.py Sat Oct 30 23:07:42 2010
@@ -22,7 +22,8 @@
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):
More information about the Python-checkins
mailing list