avoid problems with trial and ENOSPC

I don't know if these will show up in this environment ... just copy/pasted
from the GitHub Actions config.
This commit is contained in:
Jean-Paul Calderone 2023-08-07 16:21:50 -04:00
parent f649968ab5
commit 371f82bb4d

View File

@ -172,7 +172,13 @@ jobs:
- "run":
name: "Run Unit Tests"
command: |
python -m tox -e py311-coverage
# On Windows, a non-blocking pipe might respond (when emulating
# Unix-y API) with ENOSPC to indicate buffer full. Trial doesn't
# handle this well, so it breaks test runs. To attempt to solve
# this, we pipe the output through passthrough.py that will
# hopefully be able to do the right thing by using Windows APIs.
python -m pip install twisted pywin32
python -m tox -e py311-coverage | python misc/windows-enospc/passthrough.py
- "run":
name: "Upload Coverage"