mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #2868 from MinchinWeb/patch-1
Fix `invoke tests` task problem on Windows
This commit is contained in:
commit
dac01831f2
1 changed files with 2 additions and 1 deletions
3
tasks.py
3
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue