Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for testing on Python 2 #108

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
import pyroaring
from pyroaring import BitMap, FrozenBitMap

is_python2 = sys.version_info < (3, 0)

try: # Python2 compatibility
range = xrange
except NameError:
pass

settings.register_profile("ci", settings(
max_examples=100, deadline=None))
Expand Down Expand Up @@ -537,7 +531,6 @@ def test_intersection_update(self, initial_values, all_values, cow):
self.assertEqual(expected_result, self.initial_bitmap)
self.assertEqual(type(expected_result), type(self.initial_bitmap))

@unittest.skipIf(is_python2, 'https://github.com/Ezibenroc/PyRoaringBitMap/pull/38#issuecomment-418262391')
@given(bitmap_cls, st.data(), hyp_many_collections, st.booleans())
def test_union(self, cls, data, all_values, cow):
classes = [data.draw(bitmap_cls) for _ in range(len(all_values))]
Expand All @@ -548,7 +541,6 @@ def test_union(self, cls, data, all_values, cow):
lambda x, y: x | y, self.all_bitmaps)
self.assertEqual(expected_result, result)

@unittest.skipIf(is_python2, 'https://github.com/Ezibenroc/PyRoaringBitMap/pull/38#issuecomment-418262391')
@given(bitmap_cls, st.data(), hyp_many_collections, st.booleans())
def test_intersection(self, cls, data, all_values, cow):
classes = [data.draw(bitmap_cls) for _ in range(len(all_values))]
Expand All @@ -559,7 +551,6 @@ def test_intersection(self, cls, data, all_values, cow):
lambda x, y: x & y, self.all_bitmaps)
self.assertEqual(expected_result, result)

@unittest.skipIf(is_python2, 'https://github.com/Ezibenroc/PyRoaringBitMap/pull/38#issuecomment-418262391')
@given(bitmap_cls, st.data(), hyp_many_collections, st.booleans())
def test_difference(self, cls, data, all_values, cow):
classes = [data.draw(bitmap_cls) for _ in range(len(all_values))]
Expand Down
Loading