Skip to content

Commit f84fea0

Browse files
authored
Update usage.rst (#10974)
Added a note for single quotation used in Windows.
1 parent 271bdf6 commit f84fea0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/en/how-to/usage.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ Pytest supports several ways to run and select tests from the command-line.
3535

3636
.. code-block:: bash
3737
38-
pytest -k "MyClass and not method"
38+
pytest -k 'MyClass and not method'
3939
4040
This will run tests which contain names that match the given *string expression* (case-insensitive),
4141
which can include Python operators that use filenames, class names and function names as variables.
4242
The example above will run ``TestMyClass.test_something`` but not ``TestMyClass.test_method_simple``.
43+
Use ``""`` instead of ``''`` in expression when running this on Windows
4344

4445
.. _nodeids:
4546

0 commit comments

Comments
 (0)