[Python-checkins] cpython: Revert cosmetic change.

eric.araujo python-checkins at python.org
Fri Aug 12 18:03:55 CEST 2011


http://hg.python.org/cpython/rev/360f6f4b9ecb
changeset:   71825:360f6f4b9ecb
user:        Éric Araujo <merwok at netwok.org>
date:        Wed Aug 10 02:46:33 2011 +0200
summary:
  Revert cosmetic change.

A reminder: distutils only gets bug fixes.  Cosmetic changes, especially
in tests, are not worth the time spent, and can even make future merges
of bugfixes a bit less easy.

files:
  Lib/distutils/tests/test_build_py.py |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Lib/distutils/tests/test_build_py.py b/Lib/distutils/tests/test_build_py.py
--- a/Lib/distutils/tests/test_build_py.py
+++ b/Lib/distutils/tests/test_build_py.py
@@ -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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list