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

Unified Diff: Lib/test/test_import.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_http_cookiejar.py ('k') | Lib/test/test_imp.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_import.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_import.py Mon Jul 25 09:47:18 2011 -0400
@@ -14,7 +14,7 @@
from test.support import (
EnvironmentVarGuard, TESTFN, check_warnings, forget, is_jython,
make_legacy_pyc, rmtree, run_unittest, swap_attr, swap_item, temp_umask,
- unlink, unload, create_empty_file)
+ unlink, unload)
from test import script_helper
@@ -103,7 +103,7 @@
sys.path.insert(0, os.curdir)
try:
fname = TESTFN + os.extsep + "py"
- create_empty_file(fname)
+ open(fname, 'w').close()
os.chmod(fname, (stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH |
stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH))
__import__(TESTFN)
« no previous file with comments | « Lib/test/test_http_cookiejar.py ('k') | Lib/test/test_imp.py » ('j') | no next file with comments »

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