Fix #10256 - resource warning

This commit is contained in:
Brian Curtin 2010-10-30 21:03:18 +00:00
parent b6751dcff2
commit 1d7878a696
1 changed files with 1 additions and 1 deletions

View File

@ -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):