summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-10 00:46:33 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-10 00:46:33 (GMT)
commit25785e9ca581a0197cfb70027f02b85d9851ad54 (patch)
tree24099a7e6f2ca581e77e9b78affef86d3358f76b /Lib/distutils
parent7fc0394a12d4bb5632424bfdfd4bb35590dec2e5 (diff)
downloadcpython-25785e9ca581a0197cfb70027f02b85d9851ad54.zip
cpython-25785e9ca581a0197cfb70027f02b85d9851ad54.tar.gz
cpython-25785e9ca581a0197cfb70027f02b85d9851ad54.tar.bz2
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.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build_py.py6
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
index c7c36f3..4e46339 100644
--- a/Lib/distutils/tests/test_build_py.py
+++ b/Lib/distutils/tests/test_build_py.py
@@ -10,7 +10,7 @@ from distutils.core import Distribution
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 @@ class BuildPyTestCase(support.TempdirManager,
# 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