Skip to content

Commit

Permalink
use raw string syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Nov 13, 2024
1 parent 5533812 commit 433a93a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
"test_get_numeric_value_with_regex",
{"header": "61,60"},
"header",
re.compile("([-+]?\d+)"),
re.compile(r"([-+]?\d+)"),
61,
), # noqa
(
"test_get_numeric_value_with_regex_no_header",
{"header": "61,60"},
"notheader",
re.compile("([-+]?\d+)"),
re.compile(r"([-+]?\d+)"),
None,
), # noqa
(
"test_get_numeric_value_with_regex_not_matching",
{"header": "abc61,60"},
"header",
re.compile("([-+]?\d+)"),
re.compile(r"([-+]?\d+)"),
None,
), # noqa
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
SOME_BACKOFF_TIME,
),
("test_wait_time_from_header_not_a_number", "wait_time", "61,60", None, None),
("test_wait_time_from_header_with_regex", "wait_time", "61,60", "([-+]?\d+)", 61), # noqa
("test_wait_time_from_header_with_regex", "wait_time", "61,60", r"([-+]?\d+)", 61), # noqa
("test_wait_time_fœrom_header_with_regex_no_match", "wait_time", "...", "[-+]?\d+", None), # noqa
("test_wait_time_from_header", "absent_header", None, None, None),
],
Expand Down

0 comments on commit 433a93a

Please sign in to comment.