Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pandas/tests/io/sas/test_sas.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def test_sas_buffer_format(self):
with pytest.raises(ValueError, match=msg):
read_sas(b)

def test_sas_read_no_format_or_extension(self):
def test_sas_read_no_format_or_extension(self, temp_file):
# see gh-24548
msg = "unable to infer format of SAS file.+"
with tm.ensure_clean("test_file_no_extension") as path:
with pytest.raises(ValueError, match=msg):
read_sas(path)
# Using the pytest temp_file fixture instead of tm.ensure_clean
with pytest.raises(ValueError, match=msg):
read_sas(temp_file)


def test_sas_archive(datapath):
Expand Down
Loading