Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23)

Unified Diff: Lib/test/test_pkgimport.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_os.py ('k') | Lib/test/test_platform.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_pkgimport.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_pkgimport.py Mon Jul 25 09:47:18 2011 -0400
@@ -7,7 +7,7 @@
import unittest
from imp import cache_from_source
-from test.support import run_unittest, create_empty_file
+from test.support import run_unittest
class TestImport(unittest.TestCase):
@@ -29,7 +29,7 @@
self.package_dir = os.path.join(self.test_dir,
self.package_name)
os.mkdir(self.package_dir)
- create_empty_file(os.path.join(self.package_dir, '__init__.py'))
+ 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):
« no previous file with comments | « Lib/test/test_os.py ('k') | Lib/test/test_platform.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+