mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 20:12:58 +00:00
Wording
This commit is contained in:
@@ -7,13 +7,13 @@ from packaging import version
|
|||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def test_python_version(container, python_max_version="3.9"):
|
def test_python_version(container, python_next_version="3.9"):
|
||||||
"""Check that python version is not higher than a max version"""
|
"""Check that python version is lower than the next version"""
|
||||||
LOGGER.info(f"Checking that python version is lower than {python_max_version}")
|
LOGGER.info(f"Checking that python version is lower than {python_next_version}")
|
||||||
c = container.run(tty=True, command=["start.sh"])
|
c = container.run(tty=True, command=["start.sh"])
|
||||||
cmd = c.exec_run("python --version")
|
cmd = c.exec_run("python --version")
|
||||||
output = cmd.output.decode("utf-8")
|
output = cmd.output.decode("utf-8")
|
||||||
actual_python_version = version.parse(output.split()[1])
|
actual_python_version = version.parse(output.split()[1])
|
||||||
assert actual_python_version < version.parse(
|
assert actual_python_version < version.parse(
|
||||||
python_max_version
|
python_next_version
|
||||||
), f"Python version shall be lower than {python_max_version}"
|
), f"Python version shall be lower than {python_next_version}"
|
||||||
|
Reference in New Issue
Block a user