Skip to content

Commit 69477b2

Browse files
committed
fix test; disable CounterGather trial
1 parent f124ee9 commit 69477b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/sourmash/index/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def counter_gather(self, query, threshold_bp, **kwargs):
311311
with query.update() as prefetch_query:
312312
prefetch_query.minhash = prefetch_query.minhash.flatten()
313313

314-
if 0: # @CTB
314+
if 1: # @CTB
315315
# find all matches and construct a CounterGather object.
316316
counter = CounterGather(prefetch_query)
317317
for result in self.prefetch(prefetch_query, threshold_bp, **kwargs):

tests/test_revindex.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def test_revindex_empty():
4343
ss2 = load_one_signature_from_json(sig2, ksize=31)
4444
lidx = RevIndex(template=ss2.minhash)
4545

46-
x = list(lidx.signatures())
46+
with pytest.raises(ValueError):
47+
x = list(lidx.signatures())
4748

4849

4950
def test_revindex_index_search():

0 commit comments

Comments
 (0)