Skip to content

Commit

Permalink
Merge pull request #3905 from roehling/32bit
Browse files Browse the repository at this point in the history
Fix 32-bit architecture detection in pandas index test
  • Loading branch information
Zac-HD committed Mar 2, 2024
2 parents f1fd1a4 + 8ad8ca1 commit 3312a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypothesis-python/tests/pandas/test_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# https://pandas.pydata.org/docs/whatsnew/v2.0.0.html#index-can-now-hold-numpy-numeric-dtypes
@given(pdst.indexes(dtype=int, max_size=0))
def test_gets_right_dtype_for_empty_indices(ix):
is_32bit = sys.maxsize == 2**32 - 1
is_32bit = sys.maxsize == 2**31 - 1
pandas2 = pandas.__version__.startswith("2.")
windows = sys.platform == "win32" # including 64-bit windows, confusingly
if pandas2 and (is_32bit or windows):
Expand Down

0 comments on commit 3312a83

Please sign in to comment.