From c46661b32f05579af8ba536c11d28278b1b3fe41 Mon Sep 17 00:00:00 2001 From: Yuchen Xiao Date: Sun, 19 Apr 2026 13:21:13 -0400 Subject: [PATCH 1/2] fix: fix path separator in windows --- tests/test_runmacro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_runmacro.py b/tests/test_runmacro.py index a2545ba..cbd1be8 100644 --- a/tests/test_runmacro.py +++ b/tests/test_runmacro.py @@ -1,3 +1,4 @@ +import re from pathlib import Path import numpy @@ -186,7 +187,7 @@ def test_command_processor( ( 'load structure foo from "/nonexistent/path.cif"', FileNotFoundError, - "structure /nonexistent/path.cif not found. " + f"structure {Path('/nonexistent/path.cif')} not found. " "Please ensure the path is correct and the file exists.", ), ( @@ -207,5 +208,5 @@ def test_command_processor( ) def test_load_command_processor_bad(command_string, expected_exception, match): parser = MacroParser() - with pytest.raises(expected_exception, match=match): + with pytest.raises(expected_exception, match=re.escape(match)): parser.parse(command_string) From bcc5d2a3e508077ef0edb79eee98da2a3b72711e Mon Sep 17 00:00:00 2001 From: Yuchen Xiao Date: Sun, 19 Apr 2026 14:17:36 -0400 Subject: [PATCH 2/2] chore: add news --- news/fix-ci.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 news/fix-ci.rst diff --git a/news/fix-ci.rst b/news/fix-ci.rst new file mode 100644 index 0000000..c0d8852 --- /dev/null +++ b/news/fix-ci.rst @@ -0,0 +1,23 @@ +**Added:** + +* No news added: Fix path separator mismatch for different platforms in the tests. + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +*