Closed
Description
v0.11.0-492-gb204e14
======================================================================
ERROR: test_write_dta5 (pandas.io.tests.test_stata.StataTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 137, in test_write_dta5
written_and_read_again = self.read_dta(path)
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 39, in read_dta
return read_stata(file, convert_dates=True)
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 37, in read_stata
reader = StataReader(filepath_or_buffer, encoding)
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 302, in __init__
self._read_header()
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 324, in _read_header
typlist = [ord(self.path_or_buf.read(1)) for i in range(self.nvar)]
TypeError: ord() expected a character, but string of length 0 found
======================================================================
ERROR: test_write_dta6 (pandas.io.tests.test_stata.StataTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 146, in test_write_dta6
written_and_read_again = self.read_dta(path)
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 39, in read_dta
return read_stata(file, convert_dates=True)
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 37, in read_stata
reader = StataReader(filepath_or_buffer, encoding)
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 302, in __init__
self._read_header()
File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 328, in _read_header
self.dtyplist = [self.DTYPE_MAP[typ] for typ in typlist]
KeyError: 0