summaryrefslogtreecommitdiff
path: root/tests/test_conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-03-14 11:57:24 +0100
committerFlorian Bruhin <me@the-compiler.org>2023-03-14 11:57:24 +0100
commit6e48c9f1a9e782f877672565aff290f8028d300d (patch)
treec789ef4a581f07b95437abeda6a9164829037608 /tests/test_conftest.py
parent9d9a7b3b841cc38c9cb4d8665a0a1d11dff24d3b (diff)
downloadqutebrowser-6e48c9f1a9e782f877672565aff290f8028d300d.tar.gz
qutebrowser-6e48c9f1a9e782f877672565aff290f8028d300d.zip
Revert "lint: add stacklevel kwarg to warnings"
This reverts commit 47be6f3aeb886cf10f85158af18b13906fc68704. This doesn't really make sense in test files, as the warning would point inside some internal pytest code, which is not helpful. Instead, let's just disable the corresponding flake8 warning in tests.
Diffstat (limited to 'tests/test_conftest.py')
-rw-r--r--tests/test_conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_conftest.py b/tests/test_conftest.py
index 2019bfd0b..fedc6b43f 100644
--- a/tests/test_conftest.py
+++ b/tests/test_conftest.py
@@ -41,7 +41,7 @@ def test_no_qapp(request):
def test_fail_on_warnings():
with pytest.raises(PendingDeprecationWarning):
- warnings.warn('test', PendingDeprecationWarning, stacklevel=2)
+ warnings.warn('test', PendingDeprecationWarning)
@pytest.mark.xfail(reason="https://github.com/qutebrowser/qutebrowser/issues/1070",