diff --git a/changelog/5153.trivial.rst b/changelog/5153.trivial.rst new file mode 100644 index 00000000000..13f9de81467 --- /dev/null +++ b/changelog/5153.trivial.rst @@ -0,0 +1,2 @@ +Remove extra characters in the shown command line prompts in the test discovery +documentation. diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index 02c12f6bc9f..af922df343e 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -206,7 +206,7 @@ You can always peek at the collection tree without running tests like this: .. code-block:: pytest - . $ pytest --collect-only pythoncollection.py + $ pytest --collect-only pythoncollection.py =========================== test session starts ============================ platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y cachedir: $PYTHON_PREFIX/.pytest_cache @@ -266,7 +266,7 @@ leave out the ``setup.py`` file: .. code-block:: pytest - #$ pytest --collect-only + $ pytest --collect-only ====== test session starts ====== platform linux2 -- Python 2.7.10, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini