diff --git a/tests/docker-stacks-foundation/test_python_version.py b/tests/docker-stacks-foundation/test_python_version.py index bf81df8356..1660627ea4 100644 --- a/tests/docker-stacks-foundation/test_python_version.py +++ b/tests/docker-stacks-foundation/test_python_version.py @@ -31,4 +31,4 @@ def test_python_pinned_version(container: TrackedContainer) -> None: tty=True, command=["cat", "/opt/conda/conda-meta/pinned"], ) - assert f"python {EXPECTED_PYTHON_VERSION}.*" in logs + assert logs.startswith(f"python {EXPECTED_PYTHON_VERSION}.*")