diff options
| author | Paul Moore <p.f.moore@gmail.com> | 2016-02-03 15:49:30 +0000 |
|---|---|---|
| committer | Paul Moore <p.f.moore@gmail.com> | 2016-02-03 15:49:30 +0000 |
| commit | 8ba1c660027c275bc80137f0a3435191dfcb438d (patch) | |
| tree | b503da80997ce85ece6b0e8db4fc895a46b47320 | |
| parent | 3c2e616d789240ed7e4a9783e554ccc3bad89047 (diff) | |
| download | virtualenv-8ba1c660027c275bc80137f0a3435191dfcb438d.tar.gz | |
The -p X.Y abbreviated form does not work on Windows for Python 3.5+
| -rw-r--r-- | tests/test_cmdline.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 9d8cdbd..9682ef0 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -1,6 +1,7 @@ import sys import subprocess import virtualenv +import pytest VIRTUALENV_SCRIPT = virtualenv.__file__ @@ -21,6 +22,12 @@ def test_commandline_explicit_interp(tmpdir): str(tmpdir.join('venv')) ]) +# The registry lookups to support the abbreviated "-p 3.5" form of specifying +# a Python interpreter on Windows don't seem to work with Python 3.5. The +# registry layout is not well documented, and it's not clear that the feature +# is sufficiently widely used to be worth fixing. +# See https://github.com/pypa/virtualenv/issues/864 +@pytest.mark.skipif("sys.platform == 'win32' and sys.version_info[:2] >= (3,5)") def test_commandline_abbrev_interp(tmpdir): """Specifying abbreviated forms of the Python interpreter should work""" if sys.platform == 'win32': |
