Skip to content
Snippets Groups Projects
Commit 64a5f2fb authored by ulif's avatar ulif
Browse files

Reenable doctests in py modules.

We pin py.test to version < 2.8.0 to make it work with the
`--doctest-modules` option enabled. We still wait for this bug
in py.test being fixed (announced in issue tracker for 2.8.3
release of py.test).
parent 587eae04
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,7 @@ dev = develop easy_install diceware[tests]
docs = develop easy_install diceware[docs]
[pytest]
# py.test 2.8.2 breaks with --doctest-modules
# See https://github.com/pytest-dev/pytest/issues/1057
addopts = --doctest-glob='*.rst'
addopts = --doctest-modules --doctest-glob='*.rst'
diceware tests docs README.rst
[bdist_wheel]
......
......@@ -33,7 +33,8 @@ install_requires = [
]
tests_require = [
'pytest >= 2.0.3',
# See tox.ini
'pytest >=2.0.3,<2.8.0',
'coverage',
]
......
......@@ -4,7 +4,9 @@ envlist = flake8, pypy, py26, py27, py32, py33, py34, py35, coverage
[testenv]
usedevelop=True
recreate=True
deps=pytest
# py.test 2.8.2 breaks with --doctest-modules in setup.cfg.
# See https://github.com/pytest-dev/pytest/issues/1057
deps=pytest>=2.0.3,<2.8.0
commands=
python setup.py test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment