Skip to content

Commit 7a04d15

Browse files
committed
Pin pytest to a version supporting Python 2
Run "pytest", not "py.test"
1 parent d1be850 commit 7a04d15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ jobs:
3737
PYTHON_VERSION: ${{ matrix.python-version }}
3838
run: |
3939
export PYTHONPATH=`python -c "import sys; print('python2' if sys.version.startswith('2') else 'src')"`
40-
if [[ $PYTHON_VERSION < '3.7' ]]; then py.test $PYTHONPATH; fi
40+
if [[ $PYTHON_VERSION < '3.7' ]]; then pytest $PYTHONPATH; fi
4141
4242
if [[ $PYTHON_VERSION < '3.5' ]]; then pip install -U .; fi
4343
export PYTHONPATH=`python -c "import sys; print('typing_extensions/src_py2' if sys.version.startswith('2') else 'typing_extensions/src_py3')"`
44-
py.test $PYTHONPATH
44+
pytest $PYTHONPATH
4545
4646
linting:
4747
name: Run linting

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
flake8; python_version >= '3.6'
22
flake8-bugbear; python_version >= '3.6'
33
flake8-pyi; python_version >= '3.6'
4-
pytest>=4.4.1; python_version >= '3.4'
4+
pytest==4.6.11
55
pytest-xdist>=1.18; python_version >= '3.4'
66
pytest-cov>=2.4.0; python_version >= '3.4'

0 commit comments

Comments
 (0)