escape
This commit is contained in:
parent
b802b5911e
commit
9c9b01bdbc
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def test_load_yaml_file_not_found():
|
|||
def test_load_yaml_invalid_syntax(bad_yaml_file_path: str):
|
||||
with pytest.raises(
|
||||
InvalidYamlException,
|
||||
match=f"'{bad_yaml_file_path}' has invalid YAML",
|
||||
match=re.escape(f"'{bad_yaml_file_path}' has invalid YAML"),
|
||||
):
|
||||
load_yaml(file_path=bad_yaml_file_path)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue