Skip to content
Closed
Changes from 2 commits
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 @@ -4,6 +4,7 @@

from pandas import read_sas
import pandas._testing as tm
from pandas.conftest import temp_file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont import this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on it



class TestSas:
Expand All @@ -18,12 +19,11 @@ 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)
with pytest.raises(ValueError, match=msg):
read_sas(temp_file)


def test_sas_archive(datapath):
Expand Down
Loading