From 799e5ddda2c64ef00ec32840b7839e76421054ba Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 14 Dec 2021 23:22:56 +0100 Subject: [PATCH] No longer check Python versions --- src/tox_current_env/hooks4.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/tox_current_env/hooks4.py b/src/tox_current_env/hooks4.py index 21e0f7f..c2cd700 100644 --- a/src/tox_current_env/hooks4.py +++ b/src/tox_current_env/hooks4.py @@ -125,16 +125,6 @@ class CurrentEnv(PythonRun): return self._executor def _get_python(self, base_python): - # TODO: Improve version check and error message - version_nodot = "".join(str(p) for p in sys.version_info[:2]) - base_python = base_python[0] - if not base_python.endswith(version_nodot): - raise HandledError( - "Python version mismatch. " - f"Current version: {sys.version_info[:2]}, " - f"Requested environment: {base_python}" - ) - return PythonInfo( implementation=sys.implementation, version_info=sys.version_info,