Add note about --strict and --strict-markers to references

This commit is contained in:
Florian Dahlitz 2020-05-22 16:33:50 +02:00
parent 4a1557fa0e
commit 62d3577435
No known key found for this signature in database
GPG Key ID: 628E551560123F45
3 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,7 @@ Fabio Zadrozny
Felix Nieuwenhuizen Felix Nieuwenhuizen
Feng Ma Feng Ma
Florian Bruhin Florian Bruhin
Florian Dahlitz
Floris Bruynooghe Floris Bruynooghe
Gabriel Reis Gabriel Reis
Gene Wood Gene Wood

1
changelog/7233.doc.rst Normal file
View File

@ -0,0 +1 @@
Add a note about ``--strict`` and ``--strict-markers`` and the preference for the latter one.

View File

@ -1447,6 +1447,11 @@ passed multiple times. The expected format is ``name=value``. For example::
slow slow
serial serial
.. note::
The use of ``--strict-markers`` is highly preferred. ``--strict`` was kept for
backward compatibility only and may be confusing for others as it only applies to
markers and not to other options.
.. confval:: minversion .. confval:: minversion
Specifies a minimal pytest version required for running tests. Specifies a minimal pytest version required for running tests.