diff options
author | Max Rees <maxcrees@me.com> | 2018-01-10 22:39:21 +0000 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2018-01-11 04:42:02 +0000 |
commit | 0cacb6d074821f1b3266d0dd782f2e3a59735e59 (patch) | |
tree | 2f906b23335f5b0a7780172b678ad0e4793050af /user/py3-virtualenv/test-python3.patch | |
parent | cee386a7d341f6ad530f58bd7ec2785b935cda79 (diff) | |
download | packages-0cacb6d074821f1b3266d0dd782f2e3a59735e59.tar.gz packages-0cacb6d074821f1b3266d0dd782f2e3a59735e59.tar.bz2 packages-0cacb6d074821f1b3266d0dd782f2e3a59735e59.tar.xz packages-0cacb6d074821f1b3266d0dd782f2e3a59735e59.zip |
user/py3-virtualenv: new package
Diffstat (limited to 'user/py3-virtualenv/test-python3.patch')
-rw-r--r-- | user/py3-virtualenv/test-python3.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/user/py3-virtualenv/test-python3.patch b/user/py3-virtualenv/test-python3.patch new file mode 100644 index 000000000..8b4a99b51 --- /dev/null +++ b/user/py3-virtualenv/test-python3.patch @@ -0,0 +1,74 @@ +--- virtualenv-15.1.0/tests/test_activate_output.expected 2016-11-16 02:39:30.000000000 +0000 ++++ virtualenv-15.1.0/tests/test_activate_output.expected 2018-01-10 23:31:17.840000000 +0000 +@@ -1,2 +1,4 @@ +-New python executable in /tmp/test_virtualenv_activate.venv/bin/python ++Using base prefix '/usr' ++New python executable in /tmp/test_virtualenv_activate.venv/bin/python3 ++Also creating executable in /tmp/test_virtualenv_activate.venv/bin/python + Installing setuptools, pip, wheel...done. +--- virtualenv-15.1.0/tests/test_virtualenv.py 2016-11-16 02:39:30.000000000 +0000 ++++ virtualenv-15.1.0/tests/test_virtualenv.py 2018-01-11 03:40:22.270000000 +0000 +@@ -58,13 +58,13 @@ + def test_activate_after_future_statements(): + """Should insert activation line after last future statement""" + script = [ +- '#!/usr/bin/env python', ++ '#!/usr/bin/env python3', + 'from __future__ import with_statement', + 'from __future__ import print_function', + 'print("Hello, world!")' + ] + assert virtualenv.relative_script(script) == [ +- '#!/usr/bin/env python', ++ '#!/usr/bin/env python3', + 'from __future__ import with_statement', + 'from __future__ import print_function', + '', +@@ -110,7 +110,7 @@ + if virtualenv.is_win: + required_executables = ['python.exe', 'pythonw.exe'] + else: +- py_exe_no_version = 'python' ++ py_exe_no_version = 'python3' + py_exe_version_major = 'python%s' % sys.version_info[0] + py_exe_version_major_minor = 'python%s.%s' % ( + sys.version_info[0], sys.version_info[1]) +--- virtualenv-15.1.0/tests/test_activate.sh 2016-11-16 02:39:30.000000000 +0000 ++++ virtualenv-15.1.0/tests/test_activate.sh 2018-01-11 03:49:05.070000000 +0000 +@@ -19,7 +19,7 @@ + echo "$0: Created virtualenv ${TESTENV}." 1>&2 + + echo "$0: Activating ${TESTENV}..." 1>&2 +-. ${TESTENV}/bin/activate ++PS1="${PS1:-}" . ${TESTENV}/bin/activate + echo "$0: Activated ${TESTENV}." 1>&2 + + echo "$0: Checking value of \$VIRTUAL_ENV..." 1>&2 +@@ -31,14 +31,14 @@ + + echo "$0: \$VIRTUAL_ENV = \"${VIRTUAL_ENV}\" -- OK." 1>&2 + +-echo "$0: Checking output of \$(which python)..." 1>&2 ++echo "$0: Checking output of \$(which python3)..." 1>&2 + +-if [ "$(which python)" != "${TESTENV}/bin/python" ]; then +- echo "$0: Expected \$(which python) to return \"${TESTENV}/bin/python\"; actual value: \"$(which python)\"!" 1>&2 ++if [ "$(which python3)" != "${TESTENV}/bin/python3" ]; then ++ echo "$0: Expected \$(which python3) to return \"${TESTENV}/bin/python3\"; actual value: \"$(which python3)\"!" 1>&2 + exit 3 + fi + +-echo "$0: Output of \$(which python) is OK." 1>&2 ++echo "$0: Output of \$(which python3) is OK." 1>&2 + + echo "$0: Checking output of \$(which pip)..." 1>&2 + +@@ -60,7 +60,7 @@ + + echo "$0: Executing a simple Python program..." 1>&2 + +-TESTENV=${TESTENV} python <<__END__ ++TESTENV=${TESTENV} python3 <<__END__ + import os, sys + + expected_site_packages = os.path.join(os.environ['TESTENV'], 'lib','python%s' % sys.version[:3], 'site-packages') |