From 112de41fe244badd6d5ed4f94b64a349b44c2138 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 16 Jun 2024 18:03:29 -0400 Subject: [PATCH] Fix up the test by relaxing our assumptions on how many batched processes should be Now we have one more for "add" --- datalad/support/tests/test_annexrepo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datalad/support/tests/test_annexrepo.py b/datalad/support/tests/test_annexrepo.py index fc006f43ff..7df865465b 100644 --- a/datalad/support/tests/test_annexrepo.py +++ b/datalad/support/tests/test_annexrepo.py @@ -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()