1
0
Fork 0
forked from github/pelican

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 @task
def tests(c): def tests(c):
"""Run the test suite""" """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 @task