Skip to content

Commit 6e42b1f

Browse files
IngramBJmroeschke
andauthored
replace ensure_clean with temp_file in pandas/tests/io/sas/test_sas.py (pandas-dev#62916)
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent a59b126 commit 6e42b1f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/io/sas/test_sas.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ def test_sas_buffer_format(self):
1818
with pytest.raises(ValueError, match=msg):
1919
read_sas(b)
2020

21-
def test_sas_read_no_format_or_extension(self):
21+
def test_sas_read_no_format_or_extension(self, temp_file):
2222
# see gh-24548
2323
msg = "unable to infer format of SAS file.+"
24-
with tm.ensure_clean("test_file_no_extension") as path:
25-
with pytest.raises(ValueError, match=msg):
26-
read_sas(path)
24+
with pytest.raises(ValueError, match=msg):
25+
read_sas(temp_file)
2726

2827

2928
def test_sas_archive(datapath):

0 commit comments

Comments
 (0)