Blob Blame History Raw
From bbbbe07aab24ebaec228624cf6d0100ebe58b00a Mon Sep 17 00:00:00 2001
From: Hugo <hugovk@users.noreply.github.com>
Date: Thu, 25 Jul 2019 10:47:05 +0300
Subject: [PATCH] Consistently get version string, ignoring alpha/beta

---
 tests/functional/test_install.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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):