Skip to content

Commit

Permalink
Filter warning for importlib (#613)
Browse files Browse the repository at this point in the history
* filterwarning for importlib

* reststricted import warning to flatbuffers
  • Loading branch information
pnkraemer authored Jan 19, 2022
1 parent 5023c41 commit 3ae7949
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ testpaths = [
"tests"
]
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE"
filterwarnings = [
# "import jax" implies "import flatbuffers", which raises the following warning.
# Ignore similar to https://github.com/google/jax/blob/main/pytest.ini
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning:flatbuffers.*"
]


# Configuration of the black code style checker
# For more information about Black's usage of this file, see
Expand Down

0 comments on commit 3ae7949

Please sign in to comment.