We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10102e6 commit aaa4c1cCopy full SHA for aaa4c1c
pandas/tests/io/sas/test_sas.py
@@ -4,6 +4,7 @@
4
5
from pandas import read_sas
6
import pandas._testing as tm
7
+from pandas.conftest import temp_file
8
9
10
class TestSas:
@@ -18,12 +19,11 @@ def test_sas_buffer_format(self):
18
19
with pytest.raises(ValueError, match=msg):
20
read_sas(b)
21
- def test_sas_read_no_format_or_extension(self):
22
+ def test_sas_read_no_format_or_extension(self,temp_file):
23
# see gh-24548
24
msg = "unable to infer format of SAS file.+"
- with tm.ensure_clean("test_file_no_extension") as path:
25
- with pytest.raises(ValueError, match=msg):
26
- read_sas(path)
+ with pytest.raises(ValueError, match=msg):
+ read_sas(temp_file)
27
28
29
def test_sas_archive(datapath):
0 commit comments