Skip to content

Commit

Permalink
BF(TST): Relax matching of git-annex error message about unsafe drop
Browse files Browse the repository at this point in the history
What matters really is that we fail and that there is "unsafe" and some message
from git-annex.  In [10.20231129-18-gfd0b510573](https://git.kitenet.net/index.cgi/git-annex.git/commit/?id=fd0b5105731b17899d79cade82436320ab85cb56)
git-annex changed message to become better but I do not think we should overcomplicate
test ot match both messages exactly since who knows what other improvements
might come later again.
  • Loading branch information
yarikoptic committed Dec 11, 2023
1 parent c92f63d commit 073e434
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions datalad/distributed/tests/test_drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,7 @@ def test_safetynet(otherpath=None, origpath=None, clonepath=None):

res = cloneds.drop(what='all', on_failure='ignore')
assert_in_results(res, action="drop", status="error")
ok_(res[0]['message'].startswith(
"unsafe\nCould only verify the existence of "
"0 out of 1 necessary"),
ok_(res[0]['message'].startswith("unsafe\nCould"),
msg=f"Results were {res}")
ok_(cloneds.is_installed())

Expand Down

0 comments on commit 073e434

Please sign in to comment.