From 2f2e17465656b647d5e2bf1fc039ba67eb0b9588 Mon Sep 17 00:00:00 2001 From: Szymon Date: Thu, 24 Oct 2024 10:13:43 +0200 Subject: [PATCH] modify testing traceback so it would filter out additions to tracback coming from python 3.13 --- tests/modularinput/test_script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/modularinput/test_script.py b/tests/modularinput/test_script.py index bb471710..49c25972 100644 --- a/tests/modularinput/test_script.py +++ b/tests/modularinput/test_script.py @@ -252,6 +252,7 @@ def stream_events(self, inputs, ew): # Remove paths and line numbers err = re.sub(r'File "[^"]+', 'File "...', err.getvalue()) err = re.sub(r'line \d+', 'line 123', err) + err = re.sub(r' +~+\^+', '', err) assert out.getvalue() == "" assert err == (