diff --git a/Changelog.md b/Changelog.md index a9b4644a..f2f32c0d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -21,6 +21,12 @@ rules on making a good Changelog. version to `delocate==0.11.0`. [#215](https://github.com/matthew-brett/delocate/pull/215) +### Fixed + +- Existing libraries causing DelocationError were not shown due to bad string + formatting. + [#216](https://github.com/matthew-brett/delocate/pull/216) + ## [0.11.0] - 2024-03-22 ### Added diff --git a/delocate/tests/test_delocating.py b/delocate/tests/test_delocating.py index 2ea0f3ee..e5bb90ad 100644 --- a/delocate/tests/test_delocating.py +++ b/delocate/tests/test_delocating.py @@ -365,7 +365,10 @@ def filt_func(libname: Text) -> bool: shutil.copy2(libb, "subtree") # If liba is already present, barf shutil.copy2(liba, "subtree") - assert_raises(DelocationError, copy_recurse, "subtree", filt_func) + with pytest.raises( + DelocationError, match=r".*liba.dylib .*already exists.*liba.dylib" + ): + copy_recurse("subtree", filt_func) # Works if liba not present os.unlink(pjoin("subtree", "liba.dylib")) copy_recurse("subtree", filt_func)