laywerrobot/lib/python3.6/site-packages/pandas/tests/io/sas/test_sas.py

17 lines
411 B
Python
Raw Normal View History

2020-08-27 21:55:39 +02:00
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)