Skip to content

Commit ceb8440

Browse files
committed
wip
1 parent 06d49ab commit ceb8440

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

pandas/tests/frame/indexing/test_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ def test_add_new_column_infer_string():
18361836
class TestSetitemValidation:
18371837
# This is adapted from pandas/tests/arrays/masked/test_indexing.py
18381838
# but checks for warnings instead of errors.
1839-
def _check_setitem_invalid(self, df, invalid, indexer, warn):
1839+
def _check_setitem_invalid(self, df, invalid, indexer):
18401840
orig_df = df.copy()
18411841

18421842
# iloc

pandas/tests/frame/indexing/test_set_value.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
DataFrame,
77
isna,
88
)
9-
import pandas._testing as tm
109

1110

1211
class TestSetValue:
@@ -40,12 +39,6 @@ def test_set_value_resize(self, float_frame, using_infer_string):
4039
assert is_float_dtype(res["baz"])
4140
assert isna(res["baz"].drop(["foobar"])).all()
4241

43-
with tm.assert_produces_warning(
44-
FutureWarning, match="Setting an item of incompatible dtype"
45-
):
46-
res._set_value("foobar", "baz", "sam")
47-
assert res.loc["foobar", "baz"] == "sam"
48-
4942
def test_set_value_with_index_dtype_change(self):
5043
df_orig = DataFrame(
5144
np.random.default_rng(2).standard_normal((3, 3)),

0 commit comments

Comments
 (0)