Skip to content

Commit

Permalink
Fix deprecated warnings from tests with Python 3.7
Browse files Browse the repository at this point in the history
When the test suite was run with the Python 3.7, it produced
few warnings from Falcon and jsonschema packages. Since these
are external dependencies and not related to Snippy code, the
warnings are now ignored.

Pytest does not yet support pyproject.toml so the filtering
rules were set to setup.cfg [1]. When the PEP518 is supported
by Pytest, configuration should be moved to pyproject.toml.

[1] pytest-dev/pytest#1556

Signed-off-by: Heikki Laaksonen <[email protected]>
  • Loading branch information
heilaaks committed Oct 17, 2018
1 parent 3412b51 commit 755887b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[bdist_wheel]
# Works with Python 2 and Python 3.
universal=1

[tool:pytest]
filterwarnings =
ignore::DeprecationWarning:falcon.
ignore::DeprecationWarning:jsonschema.

0 comments on commit 755887b

Please sign in to comment.