[pypy-commit] pypy py3k: --version still prints to stdout in 3.3 (changed to stderr in 3.4)

pjenvey pypy.commits at gmail.com
Thu May 26 02:53:04 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r84700:83e15a9ac426
Date: 2016-05-25 23:50 -0700
http://bitbucket.org/pypy/pypy/changeset/83e15a9ac426/

Log:	--version still prints to stdout in 3.3 (changed to stderr in 3.4)

diff --git a/lib-python/3/test/test_ensurepip.py b/lib-python/3/test/test_ensurepip.py
--- a/lib-python/3/test/test_ensurepip.py
+++ b/lib-python/3/test/test_ensurepip.py
@@ -310,7 +310,7 @@
 
     @requires_usable_pip
     def test_bootstrap_version(self):
-        with test.support.captured_stdout() as stdout:
+        with test.support.captured_stderr() as stdout:
             with self.assertRaises(SystemExit):
                 ensurepip._main(["--version"])
         result = stdout.getvalue().strip()
@@ -335,7 +335,7 @@
 class TestUninstallationMainFunction(EnsurepipMixin, unittest.TestCase):
 
     def test_uninstall_version(self):
-        with test.support.captured_stdout() as stdout:
+        with test.support.captured_stderr() as stdout:
             with self.assertRaises(SystemExit):
                 ensurepip._uninstall._main(["--version"])
         result = stdout.getvalue().strip()


More information about the pypy-commit mailing list