From 30526c564ec2696897c10102f55812f2de9894bb Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 3 Jun 2019 00:06:23 +0200 Subject: [PATCH] Correct some regex SyntaxWarnings --- test/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run.py b/test/run.py index c5eb0330..e5241b5a 100755 --- a/test/run.py +++ b/test/run.py @@ -299,7 +299,7 @@ def collect_file_tests(path, lines, lines_to_execute): skip_version_info = None for line_nr, line in enumerate(lines, 1): if correct is not None: - r = re.match('^(\d+)\s*(.*)$', correct) + r = re.match(r'^(\d+)\s*(.*)$', correct) if r: column = int(r.group(1)) correct = r.group(2) @@ -402,7 +402,7 @@ if __name__ == '__main__': test_files = {} last = None for arg in arguments['']: - match = re.match('(\d+)-(\d+)', arg) + match = re.match(r'(\d+)-(\d+)', arg) if match: start, end = match.groups() test_files[last].append((int(start), int(end)))