diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2020-11-06 05:48:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 09:48:20 +0100 |
commit | 30287b49cd02b6a14ade1bbe9adf9711c3d1259e (patch) | |
tree | e60be4d29f6b11927f2978e65b7e1546af2d119c /src/_pytest/main.py | |
parent | 4cd0fde277f657560bf5c4453d3b645094d2c747 (diff) | |
download | pytest-30287b49cd02b6a14ade1bbe9adf9711c3d1259e.tar.gz |
Deprecate --strict (#7985)
Fix #7530
Diffstat (limited to 'src/_pytest/main.py')
-rw-r--r-- | src/_pytest/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/_pytest/main.py b/src/_pytest/main.py index d8a208a1a..04b51ac00 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -101,11 +101,13 @@ def pytest_addoption(parser: Parser) -> None: ) group._addoption( "--strict-markers", - "--strict", action="store_true", help="markers not registered in the `markers` section of the configuration file raise errors.", ) group._addoption( + "--strict", action="store_true", help="(deprecated) alias to --strict-markers.", + ) + group._addoption( "-c", metavar="file", type=str, |