mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-16 06:22:56 +00:00
Do not allocate TTY in tests if not needed (#2257)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user