Skip to content

Commit

Permalink
reduce expected err msg to common part between local and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Apr 12, 2024
1 parent 666db91 commit 16af9e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/io/test_packmol.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
from pymatgen.util.testing import TEST_FILES_DIR, PymatgenTest

TEST_DIR = f"{TEST_FILES_DIR}/packmol"
ERR_MSG_173 = "Packmol failed with error code 173 and stderr"
# error message is different in CI for unknown reasons (as of 2024-04-12)
# macOS: "Packmol failed with error code 173 and stderr: b'STOP 173\\n'"
# CI: "Packmol failed with return code 0 and stdout: Packmol was unable to
# put the molecules in the desired regions even without"
ERR_MSG_173 = "Packmol failed with "

if which("packmol") is None:
pytest.skip("packmol executable not present", allow_module_level=True)
Expand Down

0 comments on commit 16af9e4

Please sign in to comment.