Skip to content

Commit 1fdb74a

Browse files
committed
Remove df_value parameter, and unnecessary astype call from test
1 parent c384d29 commit 1fdb74a

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

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

0 commit comments

Comments
 (0)