Skip to content

Commit 3316020

Browse files
authored
Pin versions as appropriate when testing under Python 2.7 (#13724)
1 parent 76e6e28 commit 3316020

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

build/test-requirements.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
flake8
44
autopep8
55
bandit
6-
black ; python_version>='3.6'
6+
black ; python_version > '2.7'
77
yapf
88
pylint
99
pycodestyle
10-
prospector==1.2.0 # Last version of prospector with Python 2.7 support
1110
pydocstyle
11+
prospector ; python_version > '2.7'
1212
nose
13-
pytest < 6.0.0; python_version > '2.7' # Tests do not support pytest 6 yet.
13+
pytest<6 ; python_version > '2.7' # Tests currently fail against pytest 6.
1414
rope
1515
flask
1616
django
1717
isort
18-
# Python 2.7 compatibility (pytest)
19-
pytest==4.6.9; python_version == '2.7'
20-
pathlib2>=2.2.0; python_version == '2.7'
21-
py==1.8.1; python_version == '2.7'
18+
19+
# Python 2.7 support.
20+
pytest==4.6.9 ; python_version == '2.7'
21+
py==1.8.1 ; python_version == '2.7' # via pytest 4
22+
pathlib2>=2.2.0 ; python_version == '2.7' # via pytest 4
23+
prospector==1.2.0 ; python_version == '2.7'

0 commit comments

Comments
 (0)