Skip to content

Commit f2a5b6b

Browse files
Fix windows tests
1 parent 8c233c3 commit f2a5b6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_python_c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def test_total_memory_before_find_path(self):
377377
_, _, am = make_matcher_indexes_and_matcher()
378378
mem = am.total_memory
379379
if IS_WINDOWS:
380-
assert mem == sys.maxsize
380+
assert mem >= 2**31
381381
else:
382382
assert isinstance(mem, int)
383383
# Before find_path, only the initial block is allocated
@@ -389,7 +389,7 @@ def test_total_memory_after_find_path(self):
389389
am.find_path(h, 0, ts.num_sites)
390390
mem = am.total_memory
391391
if IS_WINDOWS:
392-
assert mem == sys.maxsize
392+
assert mem >= 2**31
393393
else:
394394
assert isinstance(mem, int)
395395
assert mem > 0

0 commit comments

Comments
 (0)