From 2b1622b34db09811d7f05ebc7dd9bdf6949da1dc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 20 Dec 2015 20:11:49 +0100 Subject: [PATCH] Update to pytest-bdd 2.16.0. This avoids deprecation warnings emitted by python 3.5 and pytest 2.8. --- tests/conftest.py | 4 ---- tests/test_conftest.py | 6 ------ tox.ini | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index ffc51711a..fbb514cb7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -349,10 +349,6 @@ def py_proc(): @pytest.yield_fixture(autouse=True) def fail_tests_on_warnings(): warnings.simplefilter('error') - # https://github.com/pytest-dev/pytest-bdd/issues/153 - warnings.filterwarnings('ignore', message=r'inspect.getargspec\(\) is ' - r'deprecated, use inspect.signature\(\) instead', - category=DeprecationWarning) yield warnings.resetwarnings() diff --git a/tests/test_conftest.py b/tests/test_conftest.py index fbaf28664..a5534ef5f 100644 --- a/tests/test_conftest.py +++ b/tests/test_conftest.py @@ -23,7 +23,6 @@ import os import sys import warnings -import inspect import pytest @@ -50,8 +49,3 @@ def test_installed_package(): """Make sure the tests are running against the installed package.""" print(sys.path) assert '.tox' in qutebrowser.__file__.split(os.sep) - - -def test_getargspec(): - """Make sure the getargspec DeprecationWarning gets ignored.""" - inspect.getargspec(lambda: None) # pylint: disable=deprecated-method diff --git a/tox.ini b/tox.ini index 1d5d5c680..ee847cafa 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ deps = parse-type==0.3.4 py==1.4.31 pytest==2.8.5 - pytest-bdd==2.15.0 + pytest-bdd==2.16.0 pytest-catchlog==1.2.1 pytest-cov==2.2.0 pytest-faulthandler==1.3.0