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)
|
@pytest.yield_fixture(autouse=True)
|
||||||
def fail_tests_on_warnings():
|
def fail_tests_on_warnings():
|
||||||
warnings.simplefilter('error')
|
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
|
yield
|
||||||
warnings.resetwarnings()
|
warnings.resetwarnings()
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
import inspect
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@ -50,8 +49,3 @@ def test_installed_package():
|
|||||||
"""Make sure the tests are running against the installed package."""
|
"""Make sure the tests are running against the installed package."""
|
||||||
print(sys.path)
|
print(sys.path)
|
||||||
assert '.tox' in qutebrowser.__file__.split(os.sep)
|
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
|
|
||||||
|
2
tox.ini
2
tox.ini
@ -27,7 +27,7 @@ deps =
|
|||||||
parse-type==0.3.4
|
parse-type==0.3.4
|
||||||
py==1.4.31
|
py==1.4.31
|
||||||
pytest==2.8.5
|
pytest==2.8.5
|
||||||
pytest-bdd==2.15.0
|
pytest-bdd==2.16.0
|
||||||
pytest-catchlog==1.2.1
|
pytest-catchlog==1.2.1
|
||||||
pytest-cov==2.2.0
|
pytest-cov==2.2.0
|
||||||
pytest-faulthandler==1.3.0
|
pytest-faulthandler==1.3.0
|
||||||
|
Loading…
Reference in New Issue
Block a user