aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_resources.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-12 18:43:03 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-12 18:43:03 +0200
commit54ea65f8a9d2aff50c19fb311975d885635496bb (patch)
treeb11463ecc021808d39d13b413b4714ededf7d792 /setuptools/tests/test_resources.py
parent42b976684874ad63f962946a67d03eae51884a15 (diff)
downloadexternal_python_setuptools-54ea65f8a9d2aff50c19fb311975d885635496bb.tar.gz
external_python_setuptools-54ea65f8a9d2aff50c19fb311975d885635496bb.tar.bz2
external_python_setuptools-54ea65f8a9d2aff50c19fb311975d885635496bb.zip
Redirect stderr as well.
--HG-- branch : distribute extra : rebase_source : 9f4ab6d69461acfd64cb4519ff18533c6666adcd
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r--setuptools/tests/test_resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index 03e5d0f8..8f100419 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -517,12 +517,12 @@ class ScriptHeaderTests(TestCase):
# Ensure we generate what is basically a broken shebang line
# when there's options, with a warning emitted
- sys.stdout = StringIO.StringIO()
+ sys.stdout = sys.stderr = StringIO.StringIO()
self.assertEqual(get_script_header('#!/usr/bin/python -x',
executable=exe),
'#!%s -x\n' % exe)
self.assert_('Unable to adapt shebang line' in sys.stdout.getvalue())
- sys.stdout = StringIO.StringIO()
+ sys.stdout = sys.stderr = StringIO.StringIO()
self.assertEqual(get_script_header('#!/usr/bin/python',
executable=self.non_ascii_exe),
'#!%s -x\n' % self.non_ascii_exe)