From bb4d1f235dde664232f053ca62c1489cb96a7343 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 27 Jun 2018 15:44:25 -0400 Subject: [PATCH] Check for python 3 Signed-off-by: Dan Ryan --- tests/integration/test_lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_lock.py b/tests/integration/test_lock.py index 6e637ed7..d96447c1 100644 --- a/tests/integration/test_lock.py +++ b/tests/integration/test_lock.py @@ -356,7 +356,7 @@ def test_lock_respecting_python_version(PipenvInstance, pypi): [packages] django = "*" """.strip()) - django_version = '==2.0.6' if six.PY3 else '==1.11.13' + django_version = '==2.0.6' if os.environ.get('PIP_PYTHON_VERSION', '').startswith('3') else '==1.11.13' c = p.pipenv('lock') assert c.return_code == 0 assert p.lockfile['default']['django']['version'] == django_version