Update tasks.py

PTY is not supported on Windows.
This commit is contained in:
MinchinWeb 2021-04-18 22:20:54 -06:00 committed by GitHub
commit cf4e8d527d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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