Skip to content

Commit

Permalink
Ignore tests in other directories than tests and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobgu committed Jul 2, 2019
1 parent a559cea commit fed75a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# [pytest]
# testpaths=tests docs
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Sphinx
pytest==2.3.5
pytest<5
sphinx-rtd-theme==0.1.5
memory-profiler==0.31
psutil==2.1.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def build_extension(self, ext):
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='tests',
tests_require=['pytest', 'hypothesis<5'],
tests_require=['pytest<5', 'hypothesis<5'],
scripts=[],
setup_requires=pytest_runner,
ext_modules=extensions,
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ commands = python {toxinidir}/setup.py test
# Specifying the following tests like this is very non-DRY but I have no better solution right now.
[testenv:memorytest27]
basepython = python2.7
deps = pytest
deps = pytest < 5
memory_profiler
psutil
changedir = .
Expand Down Expand Up @@ -47,7 +47,7 @@ commands = python tests/memory_profiling.py
# one item in it will be flaky.
setenv = PYTHONHASHSEED=0
basepython = python2.7
deps = pytest
deps = pytest < 5
changedir = .
commands = py.test --doctest-modules pyrsistent

Expand Down

0 comments on commit fed75a1

Please sign in to comment.