Skip to content

Commit

Permalink
dev: Ignore a deprecation warning generated by flake8's usage of impo…
Browse files Browse the repository at this point in the history
…rtlib_metadata

The warning was turned into an error by our pytest config, and thus
resulted in test failures.

importlib_metadata used to specially suppress this deprecation warning
for flake8, but that special-casing was removed in June without any
update to flake8's to avoid the warning.  See

    python/importlib_metadata#319

and the flake8 PRs it links to for more background.
  • Loading branch information
tsibley committed Aug 12, 2021
1 parent ec94f7b commit 1b76348
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytest.ini
Expand Up @@ -9,6 +9,7 @@ python_functions = pytest_*

# Turn warnings into errors. Warnings are signs that something needs
# attention, even if that means choosing to add an explicit ignore filter rule
# for them.
# for them. Last matching filter wins.
filterwarnings =
error
ignore:SelectableGroups dict interface:DeprecationWarning:flake8

0 comments on commit 1b76348

Please sign in to comment.