@@ -1090,7 +1090,6 @@ def test_flip_inplace(
10901090 bm_after .flip_inplace (start , end )
10911091 self .check_flip (bm_before , bm_after , start , end )
10921092
1093- @pytest .mark .skipif (not is_32_bits , reason = "not supported yet" )
10941093class TestShift (Util ):
10951094 @given (bitmap_cls , hyp_collection , int64 , st .booleans ())
10961095 def test_shift (
@@ -1104,7 +1103,8 @@ def test_shift(
11041103 bm_copy = cls (bm_before )
11051104 bm_after = bm_before .shift (offset )
11061105 assert bm_before == bm_copy
1107- expected = cls ([val + offset for val in values if val + offset in range (0 , 2 ** 32 )], copy_on_write = cow )
1106+ upper = 2 ** 32 if is_32_bits else 2 ** 64
1107+ expected = cls ([val + offset for val in values if val + offset in range (0 , upper )], copy_on_write = cow )
11081108 assert bm_after == expected
11091109
11101110@pytest .mark .skipif (not is_32_bits , reason = "not supported yet" )
@@ -1297,7 +1297,6 @@ def test_run_optimize(self, cls: type[EitherBitMap]) -> None:
12971297 bm3 = cls (bm1 ) # optimize is True by default
12981298 assert stats == bm3 .get_statistics ()
12991299
1300- @pytest .mark .skipif (not is_32_bits , reason = "not supported yet" )
13011300 @given (bitmap_cls )
13021301 def test_shrink_to_fit (self , cls : type [EitherBitMap ]) -> None :
13031302 bm1 = BitMap ()
@@ -1561,7 +1560,6 @@ def test_copy_writable(self, list1: list[int], cow: bool) -> None:
15611560 assert new_element in b2
15621561 assert new_element not in b1
15631562
1564- @pytest .mark .skipif (not is_32_bits , reason = "not supported yet" )
15651563 @given (bitmap_cls , small_integer_list , small_integer_list , st .booleans ())
15661564 def test_overwrite (self , BitMapClass : type [EitherBitMap ], list1 : list [int ], list2 : list [int ], cow : bool ) -> None :
15671565 assume (set (list1 ) != set (list2 ))
0 commit comments