Skip to content

Commit 21a90c8

Browse files
committed
Run regendoc again
1 parent eed21e0 commit 21a90c8

File tree

4 files changed

+5
-62
lines changed

4 files changed

+5
-62
lines changed

doc/en/builtin.rst

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -104,64 +104,7 @@ You can ask for available builtin or project-custom
104104
Add extra xml properties to the tag for the calling test.
105105
The fixture is callable with ``(name, value)``, with value being automatically
106106
xml-encoded.
107-
monkeypatch:class
108-
The returned ``monkeypatch`` fixture provides these
109-
helper methods to modify objects, dictionaries or os.environ::
110-
111-
monkeypatch.setattr(obj, name, value, raising=True)
112-
monkeypatch.delattr(obj, name, raising=True)
113-
monkeypatch.setitem(mapping, name, value)
114-
monkeypatch.delitem(obj, name, raising=True)
115-
monkeypatch.setenv(name, value, prepend=False)
116-
monkeypatch.delenv(name, value, raising=True)
117-
monkeypatch.syspath_prepend(path)
118-
monkeypatch.chdir(path)
119-
120-
All modifications will be undone after the requesting
121-
test function or fixture has finished. The ``raising``
122-
parameter determines if a KeyError or AttributeError
123-
will be raised if the set/deletion operation has no target.
124-
125-
This fixture is ``invocation``-scoped.
126-
monkeypatch:function
127-
The returned ``monkeypatch`` fixture provides these
128-
helper methods to modify objects, dictionaries or os.environ::
129-
130-
monkeypatch.setattr(obj, name, value, raising=True)
131-
monkeypatch.delattr(obj, name, raising=True)
132-
monkeypatch.setitem(mapping, name, value)
133-
monkeypatch.delitem(obj, name, raising=True)
134-
monkeypatch.setenv(name, value, prepend=False)
135-
monkeypatch.delenv(name, value, raising=True)
136-
monkeypatch.syspath_prepend(path)
137-
monkeypatch.chdir(path)
138-
139-
All modifications will be undone after the requesting
140-
test function or fixture has finished. The ``raising``
141-
parameter determines if a KeyError or AttributeError
142-
will be raised if the set/deletion operation has no target.
143-
144-
This fixture is ``invocation``-scoped.
145-
monkeypatch:module
146-
The returned ``monkeypatch`` fixture provides these
147-
helper methods to modify objects, dictionaries or os.environ::
148-
149-
monkeypatch.setattr(obj, name, value, raising=True)
150-
monkeypatch.delattr(obj, name, raising=True)
151-
monkeypatch.setitem(mapping, name, value)
152-
monkeypatch.delitem(obj, name, raising=True)
153-
monkeypatch.setenv(name, value, prepend=False)
154-
monkeypatch.delenv(name, value, raising=True)
155-
monkeypatch.syspath_prepend(path)
156-
monkeypatch.chdir(path)
157-
158-
All modifications will be undone after the requesting
159-
test function or fixture has finished. The ``raising``
160-
parameter determines if a KeyError or AttributeError
161-
will be raised if the set/deletion operation has no target.
162-
163-
This fixture is ``invocation``-scoped.
164-
monkeypatch:session
107+
monkeypatch
165108
The returned ``monkeypatch`` fixture provides these
166109
helper methods to modify objects, dictionaries or os.environ::
167110

doc/en/example/parametrize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ Running it results in some skips if we don't have all the python interpreters in
399399
. $ pytest -rs -q multipython.py
400400
ssssssssssss...ssssssssssss
401401
======= short test summary info ========
402-
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:23: 'python2.6' not found
403402
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:23: 'python3.3' not found
403+
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:23: 'python2.6' not found
404404
3 passed, 24 skipped in 0.12 seconds
405405

406406
Indirect parametrization of optional implementations/imports

doc/en/example/reportingdemo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ get on the terminal - we are working on that):
361361
> int(s)
362362
E ValueError: invalid literal for int() with base 10: 'qwe'
363363
364-
<0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python.py:1167>:1: ValueError
364+
<0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python.py:1176>:1: ValueError
365365
_______ TestRaises.test_raises_doesnt ________
366366
367367
self = <failure_demo.TestRaises object at 0xdeadbeef>

doc/en/example/simple.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Now we can profile which test functions execute the slowest::
363363
======= slowest 3 test durations ========
364364
0.20s call test_some_are_slow.py::test_funcslow2
365365
0.10s call test_some_are_slow.py::test_funcslow1
366-
0.00s teardown test_some_are_slow.py::test_funcslow2
366+
0.00s setup test_some_are_slow.py::test_funcfast
367367
======= 3 passed in 0.12 seconds ========
368368

369369
incremental testing - test steps
@@ -501,7 +501,7 @@ We can run this::
501501
file $REGENDOC_TMPDIR/b/test_error.py, line 1
502502
def test_root(db): # no db here, will error out
503503
E fixture 'db' not found
504-
available fixtures: tmpdir_factory, doctest_namespace, cache, record_xml_property, monkeypatch:session, capsys, pytestconfig, capfd, monkeypatch:function, recwarn, monkeypatch:module, tmpdir, monkeypatch:class
504+
available fixtures: monkeypatch, capfd, recwarn, pytestconfig, tmpdir_factory, tmpdir, cache, capsys, record_xml_property, doctest_namespace
505505
use 'pytest --fixtures [testpath]' for help on them.
506506
507507
$REGENDOC_TMPDIR/b/test_error.py:1

0 commit comments

Comments
 (0)