Skip to content

Commit 3dcb453

Browse files
committed
Remove df_value parameter, and unnecessary astype call from test
1 parent 75774aa commit 3dcb453

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
@@ -538,12 +538,10 @@ def test_to_csv_compression(self, compression_only,
538538
compression=read_compression)
539539
tm.assert_frame_equal(result, df)
540540

541-
@pytest.mark.parametrize("df_value", [float('nan')])
542541
@pytest.mark.parametrize("df_new_type", ["Int64"])
543-
def test_to_csv_na_rep_long_string(self, df_value, df_new_type):
542+
def test_to_csv_na_rep_long_string(self, df_new_type):
544543
# see gh-25099
545-
df = pd.DataFrame({"c": [df_value] * 3})
546-
df = df.astype(df_new_type)
544+
df = pd.DataFrame([np.nan] * 3, columns=['c'], dtype=dtype)
547545
expected_rows = ['c',
548546
'mynull',
549547
'mynull',

0 commit comments

Comments
 (0)