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

CI: Backport changes to fix unreliable tests on ARM #53849

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pandas/tests/frame/indexing/test_setitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class mystring(str):
"dtype", ["int32", "int64", "uint32", "uint64", "float32", "float64"]
)
def test_setitem_dtype(self, dtype, float_frame):
arr = np.random.randn(len(float_frame))
arr = np.random.randint(1, 10, len(float_frame))

float_frame[dtype] = np.array(arr, dtype=dtype)
assert float_frame[dtype].dtype.name == dtype
Expand Down
7 changes: 6 additions & 1 deletion pandas/tests/series/methods/test_nlargest.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@ def test_nlargest_boolean(self, data, expected):
def test_nlargest_nullable(self, any_numeric_ea_dtype):
# GH#42816
dtype = any_numeric_ea_dtype
arr = np.random.randn(10).astype(dtype.lower(), copy=False)
if dtype.startswith("UInt"):
# Can't cast from negative float to uint on some platforms
arr = np.random.randint(1, 10, 10)
else:
arr = np.random.randn(10)
arr = arr.astype(dtype.lower(), copy=False)

ser = Series(arr.copy(), dtype=dtype)
ser[1] = pd.NA
Expand Down