diff --git a/tasks.py b/tasks.py index c7e4f42c..12116da3 100644 --- a/tasks.py +++ b/tasks.py @@ -42,7 +42,8 @@ def docserve(c): @task def tests(c): """Run the test suite""" - c.run(f"{VENV_BIN}/pytest", pty=True) + PTY = True if os.name != "nt" else False + c.run(f"{VENV_BIN}/pytest", pty=PTY) @task