From 88d466c7451601dac07fb006da0e3e749aae8aa2 Mon Sep 17 00:00:00 2001 From: Daniel Brummerloh Date: Wed, 13 Dec 2023 17:40:49 +0100 Subject: [PATCH] fix escape chars in regex pattern --- tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 633bc4a..8a94ee6 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -13,7 +13,7 @@ def test_get_session_id_random(tmp_path: Path): args_resume = False args_session_id = None session_id = get_session_id(args_output_dir, args_resume, args_session_id) - assert re.search("\d+-\d+-\d+", session_id) + assert re.search(r"\d+-\d+-\d+", session_id) def test_get_session_id_explicit1(tmp_path: Path):