Skip to content

Commit 549363e

Browse files
kinowBruno P. Kinoshita
authored and
Bruno P. Kinoshita
committed
Remove df_value parameter, and unnecessary astype call from test
1 parent 048afa8 commit 549363e

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
@@ -516,12 +516,10 @@ def test_to_csv_compression(self, compression_only, read_infer, to_infer):
516516
result = pd.read_csv(path, index_col=0, compression=read_compression)
517517
tm.assert_frame_equal(result, df)
518518

519-
@pytest.mark.parametrize("df_value", [float('nan')])
520519
@pytest.mark.parametrize("df_new_type", ["Int64"])
521-
def test_to_csv_na_rep_long_string(self, df_value, df_new_type):
520+
def test_to_csv_na_rep_long_string(self, df_new_type):
522521
# see gh-25099
523-
df = pd.DataFrame({"c": [df_value] * 3})
524-
df = df.astype(df_new_type)
522+
df = pd.DataFrame([np.nan] * 3, columns=['c'], dtype=dtype)
525523
expected_rows = ['c',
526524
'mynull',
527525
'mynull',

0 commit comments

Comments
 (0)