From 45132fa7c9f9959426a35be38161d04ac30a1749 Mon Sep 17 00:00:00 2001 From: Andrey Bienkowski Date: Wed, 10 Feb 2021 14:42:28 +0300 Subject: [PATCH] Refactor a confusing int to str conversion --- tests/lib/venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/venv.py b/tests/lib/venv.py index 6dbdb4dc7..bd6426a81 100644 --- a/tests/lib/venv.py +++ b/tests/lib/venv.py @@ -32,7 +32,7 @@ class VirtualEnvironment: self.site = Path(lib) / 'site-packages' # Workaround for https://github.com/pypa/virtualenv/issues/306 if hasattr(sys, "pypy_version_info"): - version_dir = '{0}'.format(*sys.version_info) + version_dir = str(sys.version_info.major) self.lib = Path(home, 'lib-python', version_dir) else: self.lib = Path(lib)