Skip to content

Commit 9c5881c

Browse files
authored
Merge pull request #765 from timheap/bad-pytest-version
Install py.test>=2.8,<3
2 parents f455ee4 + c7c6522 commit 9c5881c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
- LC_ALL=C LC_CTYPE=C
1313
script:
1414
# avoid VersionConflict when newer version is required
15-
- pip install -U pytest
15+
- pip install -U 'pytest>=2.8,<3'
1616

1717
# Output the env, because the travis docs just can't be trusted
1818
- env

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def pypi_link(pkg_filename):
181181
tests_require=[
182182
'setuptools[ssl]',
183183
'pytest-flake8',
184-
'pytest>=2.8,!=3.0.0',
184+
'pytest>=2.8,<3',
185185
] + (['mock'] if sys.version_info[:2] < (3, 3) else []),
186186
setup_requires=[
187187
] + pytest_runner + wheel,

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
envlist = py26,py27,py33,py34,py35,pypy,pypy3
33

44
[testenv]
5+
deps=
6+
pytest-flake8
7+
pytest>=2.8,<3
58
passenv=APPDATA USERPROFILE HOMEDRIVE HOMEPATH windir
6-
commands=python setup.py test
9+
commands=python setup.py test --addopts='-rsx'

0 commit comments

Comments
 (0)