From 5877f0ea17e016656c393e79656760a4bfb6e005 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 21 Apr 2026 11:15:24 +0000 Subject: [PATCH] =?UTF-8?q?fix(#211):=20fix=20regex=20syntax=20error=20in?= =?UTF-8?q?=20test=5Fpatterns=20=E2=80=94=20raw=20string=20quote=20escapin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/perf_bottleneck_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/perf_bottleneck_finder.py b/scripts/perf_bottleneck_finder.py index e40ad6a..face0b4 100644 --- a/scripts/perf_bottleneck_finder.py +++ b/scripts/perf_bottleneck_finder.py @@ -113,7 +113,7 @@ def find_slow_tests_by_scan(repo_path: str) -> List[Bottleneck]: (r"time\.sleep\((\d+(?:\.\d+)?)\)", "Contains time.sleep() — consider using mock or async wait"), (r"subprocess\.run\(.*timeout=(\d+)", "Subprocess with timeout — may block test"), (r"requests\.(get|post|put|delete)\(", "Real HTTP call — mock with responses or httpretty"), - (r"open\([^)]*['"]w['"]", "File I/O in test — use tmp_path fixture"), + (r'open\\([^)]*)[\'"\"]w[\'"\"]', "File I/O in test — use tmp_path fixture"), ] for root, dirs, files in os.walk(repo_path):