Skip to content

Commit a9dcba2

Browse files
Backport PR #47135 on branch 1.4.x (CLN: ensure clean up styler tests) (#47141)
Backport PR #47135: CLN: ensure clean up styler tests Co-authored-by: JHM Darbyshire <[email protected]>
1 parent 3b3162b commit a9dcba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/formats/style/test_style.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1552,5 +1552,5 @@ def test_col_trimming_hide_columns():
15521552
@pytest.mark.parametrize("format", ["html", "latex"])
15531553
def test_output_buffer(mi_styler, format):
15541554
# gh 47053
1555-
with open(f"delete_me.{format}", "w") as f:
1555+
with tm.ensure_clean(f"delete_me.{format}") as f:
15561556
getattr(mi_styler, f"to_{format}")(f)

0 commit comments

Comments
 (0)