From c8daed4331722690e99687cad4d01658a96b81b2 Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Thu, 11 Jan 2024 12:14:55 -0500 Subject: [PATCH] Exclude incompatible newline char from yaml test ruamel fails to roundtrip the \x85 unicode character --- snakebids/tests/test_yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakebids/tests/test_yaml.py b/snakebids/tests/test_yaml.py index da177398..8dee796b 100644 --- a/snakebids/tests/test_yaml.py +++ b/snakebids/tests/test_yaml.py @@ -15,7 +15,7 @@ from snakebids.tests.helpers import allow_function_scoped -@given(path=st.text(min_size=1).map(Path)) +@given(path=st.text(st.characters(blacklist_characters=["\x85"]), min_size=1).map(Path)) def test_paths_formatted_as_str(path: Path): string = StringIO() yaml = yamlio.get_yaml_io()