Skip collection of terminal tests on Windows 3.9+

pull/5968/head
Kevin Bates 5 years ago
parent a9f0469709
commit 434c5cb4cb
No known key found for this signature in database
GPG Key ID: ADCCD5840EE5145F

@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [ '3.6' , '3.7', '3.8', '3.9' ] # Windows 3.9 fails due to the pywinpty dependency not working
python-version: [ '3.6' , '3.7', '3.8', '3.9' ] # Windows 3.9 fails due to the pywinpty dependency not working (Issue #5967)
steps:
- name: Checkout
uses: actions/checkout@v1

@ -0,0 +1,10 @@
import pytest
import sys
# TODO: Remove this hook once Issue #5967 is resolved.
def pytest_ignore_collect(path):
if str(path).endswith("test_terminals_api.py"):
if sys.platform.startswith('win') and sys.version_info >= (3, 9):
return True # do not collect
Loading…
Cancel
Save