From 10f03eaf0eb8b8791942e24200fe67ad0876f69c Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Thu, 22 Dec 2022 02:51:43 +0300 Subject: [PATCH] test: fix incorrect character escaping in data-parse-test --- test/data-parse-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/data-parse-test.py b/test/data-parse-test.py index f9f70d15..6198e26a 100755 --- a/test/data-parse-test.py +++ b/test/data-parse-test.py @@ -207,7 +207,7 @@ def validate_data_file_name(path: str): # Matching any of the characters in the regular expression will throw an # error. Currently only tests the square brackets [], parentheses, and curly # braces. - illegal_characters_regex = '([\[\]\{\}\(\)])' + illegal_characters_regex = '([\\[\\]\\{\\}\\(\\)])' found_characters = re.findall(illegal_characters_regex, path) if found_characters: raise AssertionError("data file name '{}' contains illegal characters: '{}'".format(path, ''.join(found_characters)))