Commit d09a906
committed
pytest: ignore pytest.PytestAssertRewriteWarning
Because sopel exposes a pytest plugin that we used with an editable
install, it looks like there is a conflict in Pytest: it tries to
rewrite the assert from the pytest_plugin.py file, even tho it's already
loaded.
As a result, it generates a warning: PytestAssertRewriteWarning.
This warning only means that the asserts in the file are not going to be
modified, which is fine by us, as this doesn't affect third-party
plugins that would use our `plugin.example` decorator.
However, the warning is annoying, so we suppress it through our test
configuration.1 parent b208ff9 commit d09a906
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
0 commit comments