summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/functional/test_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/test_install.py b/tests/functional/test_install.py
index 96b780f3c..9481cfd08 100644
--- a/tests/functional/test_install.py
+++ b/tests/functional/test_install.py
@@ -1306,7 +1306,7 @@ def test_double_install_fail(script):
def _get_expected_error_text():
return (
"Package 'pkga' requires a different Python: {} not in '<1.0'"
- ).format(sys.version.split()[0])
+ ).format('.'.join(map(str, sys.version_info[:3])))
def test_install_incompatible_python_requires(script):