Merge pull request #2868 from MinchinWeb/patch-1

Fix `invoke tests` task problem on Windows
This commit is contained in:
Justin Mayer 2021-04-19 16:44:29 +02:00 committed by GitHub
commit dac01831f2
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