From cf4e8d527d6468fad5c4910d254642c3353a2f76 Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Sun, 18 Apr 2021 22:20:54 -0600 Subject: [PATCH] Update tasks.py PTY is not supported on Windows. --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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