summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_build_py.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-11-01 22:38:44 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-11-01 22:38:44 (GMT)
commit2f9197f95518756386f04023f954976c2be010f8 (patch)
tree8e227762368ebf870467857f05f943d88ff8fb8b /Lib/distutils/tests/test_build_py.py
parentfd0680b19dfccf7bdb8b3f5e90c2e0bc2fd2aa00 (diff)
downloadcpython-2f9197f95518756386f04023f954976c2be010f8.zip
cpython-2f9197f95518756386f04023f954976c2be010f8.tar.gz
cpython-2f9197f95518756386f04023f954976c2be010f8.tar.bz2
Merged revisions 76042 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76042 | tarek.ziade | 2009-11-01 23:33:45 +0100 (Sun, 01 Nov 2009) | 1 line fixed stdout alteration in test_distutils ........
Diffstat (limited to 'Lib/distutils/tests/test_build_py.py')
-rw-r--r--Lib/distutils/tests/test_build_py.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_build_py.py b/Lib/distutils/tests/test_build_py.py
index 582f246..3e45f6e 100644
--- a/Lib/distutils/tests/test_build_py.py
+++ b/Lib/distutils/tests/test_build_py.py
@@ -69,6 +69,7 @@ class BuildPyTestCase(support.TempdirManager,
open(os.path.join(testdir, "testfile"), "w").close()
os.chdir(sources)
+ old_stdout = sys.stdout
sys.stdout = io.StringIO()
try:
@@ -87,7 +88,7 @@ class BuildPyTestCase(support.TempdirManager,
finally:
# Restore state.
os.chdir(cwd)
- sys.stdout = sys.__stdout__
+ sys.stdout = old_stdout
def test_dont_write_bytecode(self):
# makes sure byte_compile is not used