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

Unified Diff: Lib/distutils/tests/test_build_py.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/distutils/tests/test_build_ext.py ('k') | Lib/doctest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/distutils/tests/test_build_py.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/distutils/tests/test_build_py.py Mon Jul 25 09:47:18 2011 -0400
@@ -10,7 +10,7 @@
from distutils.errors import DistutilsFileError
from distutils.tests import support
-from test.support import run_unittest, create_empty_file
+from test.support import run_unittest
class BuildPyTestCase(support.TempdirManager,
@@ -71,11 +71,11 @@
# create the distribution files.
sources = self.mkdtemp()
- create_empty_file(os.path.join(sources, "__init__.py"))
+ open(os.path.join(sources, "__init__.py"), "w").close()
testdir = os.path.join(sources, "doc")
os.mkdir(testdir)
- create_empty_file(os.path.join(testdir, "testfile"))
+ open(os.path.join(testdir, "testfile"), "w").close()
os.chdir(sources)
old_stdout = sys.stdout
« no previous file with comments | « Lib/distutils/tests/test_build_ext.py ('k') | Lib/doctest.py » ('j') | no next file with comments »

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