mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-24 00:56:16 +01:00
No longer check Python versions
This commit is contained in:
parent
07e8536934
commit
799e5ddda2
@ -125,16 +125,6 @@ class CurrentEnv(PythonRun):
|
|||||||
return self._executor
|
return self._executor
|
||||||
|
|
||||||
def _get_python(self, base_python):
|
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(
|
return PythonInfo(
|
||||||
implementation=sys.implementation,
|
implementation=sys.implementation,
|
||||||
version_info=sys.version_info,
|
version_info=sys.version_info,
|
||||||
|
Loading…
Reference in New Issue
Block a user