Update to pytest-bdd 2.16.0.
This avoids deprecation warnings emitted by python 3.5 and pytest 2.8.
This commit is contained in:
parent
b8727d338f
commit
2b1622b34d
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user