From 3f692ae42f733aabadddda881678aa79ff3868a6 Mon Sep 17 00:00:00 2001 From: Jason Neal Date: Tue, 7 Aug 2018 12:02:41 +0100 Subject: [PATCH] Ignore warnings. --- .shippable.yaml | 2 +- .travis.yml | 2 +- pytest.ini | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 pytest.ini diff --git a/.shippable.yaml b/.shippable.yaml index abf0d46..79a7f6a 100644 --- a/.shippable.yaml +++ b/.shippable.yaml @@ -35,5 +35,5 @@ build: # Run test and code coverage and output results to the right folder - pytest --junitxml=shippable/testresults/nosetests.xml - - pytest --cov=spectrum_overload --cov-report=xml:shippable/codecoverage/coverage.xml --durations=10 -W error + - pytest --cov=spectrum_overload --cov-report=xml:shippable/codecoverage/coverage.xml --durations=10 diff --git a/.travis.yml b/.travis.yml index f44d55f..c236b01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: - python setup.py install script: - - pytest --cov=spectrum_overload --cov-report term-missing --durations 10 -W error + - pytest --cov=spectrum_overload --cov-report term-missing --durations 10 -W error::UserWarning - coverage xml -i after_success: diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..ad372bf --- /dev/null +++ b/pytest.ini @@ -0,0 +1,6 @@ +[pytest] +filterwarnings = + ignore + # error::UserWarning + # error + # ignore::VerifyWarning