Fix minor regendoc issues

This commit is contained in:
Bruno Oliveira 2017-05-15 20:25:53 -03:00
parent fe49c78f32
commit 00e7ee532e
4 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@ clean:
-rm -rf $(BUILDDIR)/*
regen:
PYTHONDONTWRITEBYTECODE=1 PYTEST_ADDOPT=-p\ no:hypothesis COLUMNS=76 regendoc --update *.rst */*.rst ${REGENDOC_ARGS}
PYTHONDONTWRITEBYTECODE=1 PYTEST_ADDOPT=-pno:hypothesis COLUMNS=76 regendoc --update *.rst */*.rst ${REGENDOC_ARGS}
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

View File

@ -171,7 +171,8 @@ creation of a per-test temporary directory::
tmpdir.join("samplefile.ini").write("# testdata")
def test_method(self):
s = open("samplefile.ini").read()
with open("samplefile.ini") as f:
s = f.read()
assert "testdata" in s
Due to the ``autouse`` flag the ``initdir`` fixture function will be

View File

@ -39,7 +39,7 @@ Running pytest now produces this output::
The ``-W`` flag can be passed to control which warnings will be displayed or even turn
them into errors::
$ pytest -q test_show_warning.py -W error::DeprecationWarning
$ pytest -q test_show_warnings.py -W error::DeprecationWarning
no tests ran in 0.12 seconds
ERROR: file not found: test_show_warning.py

View File

@ -134,6 +134,7 @@ commands=
[testenv:regen]
changedir=doc/en
skipsdist=True
basepython = python3.5
deps=sphinx
PyYAML