Skip to content

Commit 66eff85

Browse files
committed
docs: use double quotes for cross-platform compatibility in example code
1 parent f75e3fe commit 66eff85

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

doc/en/example/markers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ keyword arguments, e.g. to run only tests marked with ``device`` and the specifi
8080

8181
.. code-block:: pytest
8282
83-
$ pytest -v -m 'device(serial="123")'
83+
$ pytest -v -m "device(serial='123')"
8484
=========================== test session starts ============================
8585
platform linux -- Python 3.x.y, pytest-8.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
8686
cachedir: .pytest_cache

doc/en/how-to/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ with the ``phase`` keyword argument set to ``1``:
8888

8989
.. code-block:: bash
9090
91-
pytest -m slow(phase=1)
91+
pytest -m "slow(phase=1)"
9292
9393
For more information see :ref:`marks <mark>`.
9494

0 commit comments

Comments
 (0)