summaryrefslogtreecommitdiff
path: root/tests/test_conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2015-10-11 12:34:47 +0200
committerFlorian Bruhin <git@the-compiler.org>2015-11-01 22:40:11 +0100
commit7d17957e90d94f25d90addf814bb02749b9dd917 (patch)
treeab7a56d0a5fdb188392c740db8dda227c1fcfd64 /tests/test_conftest.py
parent670a4d274b15a5e43cdad54a38710442e8cdff6d (diff)
downloadqutebrowser-7d17957e90d94f25d90addf814bb02749b9dd917.tar.gz
qutebrowser-7d17957e90d94f25d90addf814bb02749b9dd917.zip
Ignore inspect.getargspec() warning during tests.
https://github.com/pytest-dev/pytest-bdd/issues/153
Diffstat (limited to 'tests/test_conftest.py')
-rw-r--r--tests/test_conftest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_conftest.py b/tests/test_conftest.py
index 0af725f30..4984b7efe 100644
--- a/tests/test_conftest.py
+++ b/tests/test_conftest.py
@@ -21,6 +21,7 @@
import warnings
+import inspect
import pytest
@@ -38,3 +39,8 @@ def test_no_qapp(request):
def test_fail_on_warnings():
with pytest.raises(PendingDeprecationWarning):
warnings.warn('test', PendingDeprecationWarning)
+
+
+def test_getargspec():
+ """Make sure the getargspec DeprecationWarning gets ignored."""
+ inspect.getargspec(lambda: None)