prefix regex strings to be treated as raw strings (#3322)
Source for documentation https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals. Closes #3316.
This commit is contained in:
@@ -52,8 +52,8 @@ if __name__ == "__main__":
|
|||||||
unexpected = defaultdict(int)
|
unexpected = defaultdict(int)
|
||||||
passed = defaultdict(int)
|
passed = defaultdict(int)
|
||||||
|
|
||||||
file = re.compile("^# (?:./)?(\S+\.t)(?:\.exe)?$")
|
file = re.compile(r"^# (?:./)?(\S+\.t)(?:\.exe)?$")
|
||||||
timestamp = re.compile("^# (\d+(?:\.\d+)?) ==>.*$")
|
timestamp = re.compile(r"^# (\d+(?:\.\d+)?) ==>.*$")
|
||||||
|
|
||||||
expected_fail = re.compile(r"^not ok.*?#\s*TODO", re.I)
|
expected_fail = re.compile(r"^not ok.*?#\s*TODO", re.I)
|
||||||
unexpected_pass = re.compile(r"^not ok .*?#\s*FIXED", re.I)
|
unexpected_pass = re.compile(r"^not ok .*?#\s*FIXED", re.I)
|
||||||
|
|||||||
Reference in New Issue
Block a user