Skip to content

Commit f09df30

Browse files
committed
removed tm.assert_produces_warning
1 parent dadf0af commit f09df30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/tests/io/formats/test_to_csv.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -780,10 +780,7 @@ def test_new_style_with_mixed_types():
780780

781781
def test_new_style_with_mixed_types_in_column():
782782
df = DataFrame({"A": [1.23, "text", 4.56]})
783-
with tm.assert_produces_warning(
784-
UserWarning, match="could not convert string to float"
785-
):
786-
result = df.to_csv(float_format="{:.2f}", lineterminator="\n")
783+
result = df.to_csv(float_format="{:.2f}", lineterminator="\n")
787784

788785
expected = ",A\n0,1.23\n1,text\n2,4.56\n"
789786
assert result == expected

0 commit comments

Comments
 (0)