Commit 7a2ae54b authored by DWesl's avatar DWesl Committed by Stefan Behnel

Mark regex as raw string to avoid syntax warnings (#3000)

The regex to match the gdb version is not intended to be interpreted as a regular string, it is designed to be used as-is as a regex.  This lets python know that minor detail.
parent f4dfcc83
......@@ -40,7 +40,7 @@ def test_gdb():
else:
stdout, _ = p.communicate()
# Based on Lib/test/test_gdb.py
regex = "GNU gdb [^\d]*(\d+)\.(\d+)"
regex = r"GNU gdb [^\d]*(\d+)\.(\d+)"
gdb_version = re.match(regex, stdout.decode('ascii', 'ignore'))
if gdb_version:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment