summaryrefslogtreecommitdiff
path: root/tests/checkers/unittest_refactoring.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/checkers/unittest_refactoring.py')
-rw-r--r--tests/checkers/unittest_refactoring.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/checkers/unittest_refactoring.py b/tests/checkers/unittest_refactoring.py
index a2694200b..760eb2fe8 100644
--- a/tests/checkers/unittest_refactoring.py
+++ b/tests/checkers/unittest_refactoring.py
@@ -32,3 +32,18 @@ def test_process_tokens() -> None:
with pytest.raises(SystemExit) as cm:
Run([os.path.join(REGR_DATA, "very_long_line.py")], reporter=TextReporter())
assert cm.value.code == 0
+
+
+@pytest.mark.skipif(not hasattr(signal, "setitimer"), reason="Assumes POSIX signals")
+def test_issue_5724() -> None:
+ """Regression test for parsing of pylint disable pragma's."""
+ with timeout(25.0):
+ with pytest.raises(SystemExit) as cm:
+ Run(
+ [
+ os.path.join(REGR_DATA, "issue_5724.py"),
+ "--enable=missing-final-newline",
+ ],
+ reporter=TextReporter(),
+ )
+ assert cm.value.code == 0