Skip to content

Commit

Permalink
Fix up the test by relaxing our assumptions on how many batched proce…
Browse files Browse the repository at this point in the history
…sses should be

Now we have one more for "add"
  • Loading branch information
yarikoptic committed Dec 15, 2024
1 parent b1b021d commit 112de41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datalad/support/tests/test_annexrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,10 @@ def test_AnnexRepo_addurl_to_file_batched(sitepath=None, siteurl=None, dst=None)
# this poor bugger still wasn't added since we used default batch_size=0 on him

# and closing the pipes now shouldn't anyhow affect things
eq_(len(ar._batched), 1)
assert ar._batched
nbatched = len(ar._batched)
ar._batched.close()
eq_(len(ar._batched), 1) # doesn't remove them, just closes
eq_(len(ar._batched), nbatched) # doesn't remove them, just closes
assert(not ar.dirty)

ar._batched.clear()
Expand Down

0 comments on commit 112de41

Please sign in to comment.