Skip to content

Commit

Permalink
Use Python raw string for regular expression
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Lauf <[email protected]>
  • Loading branch information
lauft committed Nov 23, 2024
1 parent c8dce79 commit d98ff85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/problems
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ if __name__ == "__main__":
unexpected = defaultdict(int)
passed = defaultdict(int)

file = re.compile("^# (?:./)?(\S+\.t)(?:\.exe)?$")
timestamp = re.compile("^# (\d+(?:\.\d+)?) ==>.*$")
file = re.compile(r"^# (?:./)?(\S+\.t)(?:\.exe)?$")
timestamp = re.compile(r"^# (\d+(?:\.\d+)?) ==>.*$")

expected_fail = re.compile(r"^not ok.*?#\s*TODO", re.I)
unexpected_pass = re.compile(r"^ok .*?#\s*TODO", re.I)
Expand Down

0 comments on commit d98ff85

Please sign in to comment.