tests: add optional Python 2.7 deprecation output
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:29:25 -0800
changeset 41531 14983ac4a764
parent 41530 4dd07bf84608
child 41532 bd3f03d8cc9f
tests: add optional Python 2.7 deprecation output pip 19 will emit a Python 2.7 deprecation warning when used with Python 2.7. Let's add that as optional output to our pip test. Differential Revision: https://phab.mercurial-scm.org/D5823
tests/test-install.t
--- a/tests/test-install.t	Mon Feb 04 17:06:22 2019 -0500
+++ b/tests/test-install.t	Mon Feb 04 09:29:25 2019 -0800
@@ -238,6 +238,7 @@
 the default for them.
   $ unset PYTHONPATH
   $ "$PYTHON" -m virtualenv --no-site-packages --never-download installenv >> pip.log
+  DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?)
 Note: we use this weird path to run pip and hg to avoid platform differences,
 since it's bin on most platforms but Scripts on Windows.
   $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log