Skip to content

Commit 0cf27a7

Browse files
Remove redundant assert
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 32e3206 commit 0cf27a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/tests/dtypes/test_dtypes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,5 @@ def test_categorical_nan_no_dtype_conversion():
12501250

12511251
df = pd.DataFrame({"a": Categorical([np.nan], [1]), "b": [1]})
12521252
expected = pd.DataFrame({"a": Categorical([1], [1]), "b": [1]})
1253-
assert df["a"].dtype == "category"
1254-
12551253
df.loc[0, "a"] = np.array([1])
1256-
assert df["a"].dtype == "category"
12571254
tm.assert_frame_equal(df, expected)

0 commit comments

Comments
 (0)