From 6d107ba2f429e93feb267321a31a844b87d3b5c4 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 20 Sep 2023 00:35:23 +0200 Subject: [PATCH] Fix Linter translation with multi-line expression Fixes CODEOCEAN-V1 --- lib/py_lint_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/py_lint_adapter.rb b/lib/py_lint_adapter.rb index 1c742c56..22917804 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+):(.*?)\(([^,]*?), ([^,]*?),([^,]*?)\) (.*?)$/ + ASSERTION_ERROR_REGEXP = /^(.*?\.py):(\d+):(.*?)\(([^,]*?), ([^,]*?),([^,]*?)\) ((?>.|\r|\n)*?)(?