Do not allocate TTY in tests if not needed (#2257)

This commit is contained in:
Ayaz Salikhov
2025-03-21 12:15:16 +00:00
committed by GitHub
parent f0ef7e30b2
commit 95aa99dd85
18 changed files with 3 additions and 47 deletions

View File

@@ -14,7 +14,6 @@ def test_python_version(container: TrackedContainer) -> None:
)
logs = container.run_and_wait(
timeout=5,
tty=True,
command=["python", "--version"],
)
python = next(line for line in logs.splitlines() if line.startswith("Python "))
@@ -28,7 +27,6 @@ def test_python_pinned_version(container: TrackedContainer) -> None:
LOGGER.info(f"Checking that pinned python version is {EXPECTED_PYTHON_VERSION}.*")
logs = container.run_and_wait(
timeout=5,
tty=True,
command=["cat", "/opt/conda/conda-meta/pinned"],
)
assert f"python {EXPECTED_PYTHON_VERSION}.*" in logs