remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. code-block")
This commit is contained in:
@@ -191,7 +191,7 @@ namespace in which your doctests run. It is intended to be used within
|
||||
your own fixtures to provide the tests that use them with context.
|
||||
|
||||
``doctest_namespace`` is a standard ``dict`` object into which you
|
||||
place the objects you want to appear in the doctest namespace::
|
||||
place the objects you want to appear in the doctest namespace
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -203,7 +203,7 @@ place the objects you want to appear in the doctest namespace::
|
||||
def add_np(doctest_namespace):
|
||||
doctest_namespace["np"] = numpy
|
||||
|
||||
which can then be used in your doctests directly::
|
||||
which can then be used in your doctests directly
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -225,7 +225,7 @@ Skipping tests dynamically
|
||||
|
||||
.. versionadded:: 4.4
|
||||
|
||||
You can use ``pytest.skip`` to dynamically skip doctests. For example::
|
||||
You can use ``pytest.skip`` to dynamically skip doctests. For example
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user