diff --git a/src/_pytest/capture.py b/src/_pytest/capture.py index a643936b5..3f6a25103 100644 --- a/src/_pytest/capture.py +++ b/src/_pytest/capture.py @@ -983,7 +983,6 @@ def capsys(request: SubRequest) -> Generator[CaptureFixture[str], None, None]: Returns an instance of :class:`CaptureFixture[str] `. Example: - .. code-block:: python def test_output(capsys): @@ -1011,7 +1010,6 @@ def capsysbinary(request: SubRequest) -> Generator[CaptureFixture[bytes], None, Returns an instance of :class:`CaptureFixture[bytes] `. Example: - .. code-block:: python def test_output(capsysbinary): @@ -1039,7 +1037,6 @@ def capfd(request: SubRequest) -> Generator[CaptureFixture[str], None, None]: Returns an instance of :class:`CaptureFixture[str] `. Example: - .. code-block:: python def test_system_echo(capfd): @@ -1067,7 +1064,6 @@ def capfdbinary(request: SubRequest) -> Generator[CaptureFixture[bytes], None, N Returns an instance of :class:`CaptureFixture[bytes] `. Example: - .. code-block:: python def test_system_echo(capfdbinary): diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py index e629b2a7c..3f46073ac 100644 --- a/src/_pytest/config/__init__.py +++ b/src/_pytest/config/__init__.py @@ -1737,7 +1737,6 @@ class Config: can be used to explicitly use the global verbosity level. Example: - .. code-block:: ini # content of pytest.ini diff --git a/src/_pytest/monkeypatch.py b/src/_pytest/monkeypatch.py index f498d60df..3f398df76 100644 --- a/src/_pytest/monkeypatch.py +++ b/src/_pytest/monkeypatch.py @@ -142,7 +142,6 @@ class MonkeyPatch: which undoes any patching done inside the ``with`` block upon exit. Example: - .. code-block:: python import functools diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index c14778d1f..9ba8e6a81 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -805,7 +805,6 @@ class Pytester: The first created file. Examples: - .. code-block:: python pytester.makefile(".txt", "line1", "line2") @@ -859,7 +858,6 @@ class Pytester: existing files. Examples: - .. code-block:: python def test_something(pytester): @@ -879,7 +877,6 @@ class Pytester: existing files. Examples: - .. code-block:: python def test_something(pytester):