summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lint/test_pylinter.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lint/test_pylinter.py b/tests/lint/test_pylinter.py
index 27fc10ebf..900d53fb3 100644
--- a/tests/lint/test_pylinter.py
+++ b/tests/lint/test_pylinter.py
@@ -35,3 +35,9 @@ def test_crash_in_file(
with open(files[0], encoding="utf8") as f:
content = f.read()
assert "Failed to import module spam." in content
+
+
+def test_check_deprecation(linter: PyLinter, recwarn):
+ linter.check("myfile.py")
+ msg = recwarn.pop()
+ assert "check function will only accept sequence" in str(msg)