Fix warning in pytest unit tests (use raw string for regex)

This commit is contained in:
Alberto Miorin 2021-11-21 08:54:22 +01:00
parent e4fa0247f5
commit 3638786162

View File

@ -243,7 +243,7 @@ def _handle_complex_data_types(status, dataset_name, raw_type: str, level=0):
col["dataType"] = get_column_type(
status,
dataset_name,
re.match("([\w\s]*)(?:.*)", col_type).groups()[0],
re.match(r"([\w\s]*)(?:.*)", col_type).groups()[0],
)
col["dataTypeDisplay"] = col_type.rstrip(">")
return col