Fix minor regendoc issues
This commit is contained in:
parent
fe49c78f32
commit
00e7ee532e
|
@ -41,7 +41,7 @@ clean:
|
||||||
-rm -rf $(BUILDDIR)/*
|
-rm -rf $(BUILDDIR)/*
|
||||||
|
|
||||||
regen:
|
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:
|
html:
|
||||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||||
|
|
|
@ -171,7 +171,8 @@ creation of a per-test temporary directory::
|
||||||
tmpdir.join("samplefile.ini").write("# testdata")
|
tmpdir.join("samplefile.ini").write("# testdata")
|
||||||
|
|
||||||
def test_method(self):
|
def test_method(self):
|
||||||
s = open("samplefile.ini").read()
|
with open("samplefile.ini") as f:
|
||||||
|
s = f.read()
|
||||||
assert "testdata" in s
|
assert "testdata" in s
|
||||||
|
|
||||||
Due to the ``autouse`` flag the ``initdir`` fixture function will be
|
Due to the ``autouse`` flag the ``initdir`` fixture function will be
|
||||||
|
|
|
@ -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
|
The ``-W`` flag can be passed to control which warnings will be displayed or even turn
|
||||||
them into errors::
|
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
|
no tests ran in 0.12 seconds
|
||||||
ERROR: file not found: test_show_warning.py
|
ERROR: file not found: test_show_warning.py
|
||||||
|
|
Loading…
Reference in New Issue