Skip to content

Commit

Permalink
馃敟 Drop --strict from the pytest config
Browse files Browse the repository at this point in the history
The `--strict` option has been deprecated in v6.2.0 and will probably
resurface at some point in the future but at the moment it's
recommended to use `--strict-markers` instead, which is already
present.

So this change just comments out `--strict` for pytest runs not to
fail in the CI or dev envs.

Ref:
* pytest-dev/pytest#7530
* pytest-dev/pytest#7985
  • Loading branch information
webknjaz committed Dec 16, 2020
1 parent f3c86fc commit 906de71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytest.ini
Expand Up @@ -11,7 +11,10 @@ addopts =
--junitxml=.test-results/pytest/results.xml

# Fail on non-existing markers:
--strict
# * Deprecated since v6.2.0 but may be reintroduced later covering a
# broader scope:
# --strict
# * Exists since v4.5.0 (advised to be used instead of `--strict`):
--strict-markers

# `pytest-cov`:
Expand Down

0 comments on commit 906de71

Please sign in to comment.