17 lines
411 B
Python
17 lines
411 B
Python
|
from pandas.compat import StringIO
|
||
|
from pandas import read_sas
|
||
|
|
||
|
import pandas.util.testing as tm
|
||
|
|
||
|
|
||
|
class TestSas(object):
|
||
|
|
||
|
def test_sas_buffer_format(self):
|
||
|
# see gh-14947
|
||
|
b = StringIO("")
|
||
|
|
||
|
msg = ("If this is a buffer object rather than a string "
|
||
|
"name, you must specify a format string")
|
||
|
with tm.assert_raises_regex(ValueError, msg):
|
||
|
read_sas(b)
|