Skip to content

Commit 6330776

Browse files
committed
Remove df_value parameter, and unnecessary astype call from test
1 parent 299a9bd commit 6330776

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/tests/io/formats/test_to_csv.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,10 @@ def test_to_csv_compression(self, compression_only,
535535
compression=read_compression)
536536
tm.assert_frame_equal(result, df)
537537

538-
@pytest.mark.parametrize("df_value", [float('nan')])
539538
@pytest.mark.parametrize("df_new_type", ["Int64"])
540-
def test_to_csv_na_rep_long_string(self, df_value, df_new_type):
539+
def test_to_csv_na_rep_long_string(self, df_new_type):
541540
# see gh-25099
542-
df = pd.DataFrame({"c": [df_value] * 3})
543-
df = df.astype(df_new_type)
541+
df = pd.DataFrame([np.nan] * 3, columns=['c'], dtype=dtype)
544542
expected_rows = ['c',
545543
'mynull',
546544
'mynull',

0 commit comments

Comments
 (0)