Author: Philip Jenvey <pjen...@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() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit