Skip to content

Commit b718776

Browse files
committed
make testing easier
We always know that our test are under `test/`. This allows us to call individual test files: tox -e py37 -- test/test_closed_streams.py
1 parent f05db88 commit b718776

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[tool:pytest]
2+
testpaths = test
3+
14
[wheel]
25
universal = 1

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ envlist = py27, py34, py35, py36, py37, pypy, lint, packaging, docs
44
[testenv]
55
deps= -r{toxinidir}/test_requirements.txt
66
commands=
7-
coverage run -m py.test {posargs} {toxinidir}/test/
7+
coverage run -m py.test {posargs}
88
coverage report
99

1010
[testenv:pypy]
1111
# temporarily disable coverage testing on PyPy due to performance problems
12-
commands= py.test {posargs} {toxinidir}/test/
12+
commands= py.test {posargs}
1313

1414
[testenv:lint]
1515
basepython=python3.7

0 commit comments

Comments
 (0)