Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions news/fix-ci.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* No news added: Fix path separator mismatch for different platforms in the tests.

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
5 changes: 3 additions & 2 deletions tests/test_runmacro.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
from pathlib import Path

import numpy
Expand Down Expand Up @@ -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.",
),
(
Expand All @@ -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)
Loading