From 4690dbee3287773520bafe874624c6eb95d27c55 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 24 Sep 2023 15:46:57 +0200 Subject: [PATCH] PyLint: Fix recognition of new lines Since we prevent \r\r\n line breaks in the buffer (and rather return \r\n), we can also change the recognition of line breaks for the ASSERTION_ERROR_REGEXP. --- lib/py_lint_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/py_lint_adapter.rb b/lib/py_lint_adapter.rb index 22917804..e75a1234 100644 --- a/lib/py_lint_adapter.rb +++ b/lib/py_lint_adapter.rb @@ -2,7 +2,7 @@ class PyLintAdapter < TestingFrameworkAdapter REGEXP = %r{Your code has been rated at (-?\d+\.?\d*)/(\d+\.?\d*)} - ASSERTION_ERROR_REGEXP = /^(.*?\.py):(\d+):(.*?)\(([^,]*?), ([^,]*?),([^,]*?)\) ((?>.|\r|\n)*?)(?.|\r|\n)*?)(?