Skip to content

Commit 7c26366

Browse files
kinowBruno P. Kinoshita
authored and
Bruno P. Kinoshita
committed
Remove df_value parameter, and unnecessary astype call from test
1 parent 8b34c74 commit 7c26366

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
@@ -556,12 +556,10 @@ def test_to_csv_zip_arguments(self, compression, archive_name):
556556
archived_file = os.path.basename(zp.filelist[0].filename)
557557
assert archived_file == expected_arcname
558558

559-
@pytest.mark.parametrize("df_value", [float('nan')])
560559
@pytest.mark.parametrize("df_new_type", ["Int64"])
561-
def test_to_csv_na_rep_long_string(self, df_value, df_new_type):
560+
def test_to_csv_na_rep_long_string(self, df_new_type):
562561
# see gh-25099
563-
df = pd.DataFrame({"c": [df_value] * 3})
564-
df = df.astype(df_new_type)
562+
df = pd.DataFrame([np.nan] * 3, columns=['c'], dtype=df_new_type)
565563
expected_rows = ['c',
566564
'mynull',
567565
'mynull',

0 commit comments

Comments
 (0)