BUG: parser_source as a filename with multibyte characters in Windows(non utf-8 filesystem) by hshimizu77 · Pull Request #6807 · pandas-dev/pandas (original) (raw)
The test errors
(pandas-dev) ~/E/p/l/p/s/p/p/i/tests (hshimizu77-bug-fix=) nosetests test_parsers:ParserTests.test_read_csv_example_in_windows_filesystem
E
======================================================================
ERROR: test_parsers.ParserTests.test_read_csv_example_in_windows_filesystem
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/admin/Envs/pandas-dev/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/admin/Envs/pandas-dev/lib/python2.7/site-packages/pandas/pandas/io/tests/test_parsers.py", line 1827, in test_read_csv_example_in_windows_filesystem
self.read_csv(path)
File "/Users/admin/Envs/pandas-dev/lib/python2.7/site-packages/pandas/pandas/io/tests/test_parsers.py", line 55, in read_csv
raise NotImplementedError
NotImplementedError
----------------------------------------------------------------------
Ran 1 test in 0.067s
FAILED (errors=1)
Seems to work from the interpreter though:
In [1]: from test_parsers import *
In [2]: path = tm.get_data_path(u'日本語ファイル名テスト_read_csv_in_win_filesystem.csv')
In [3]: pd.read_csv(path) Out[3]: A B C 0 100 200 300 1 aaa bbb ccc
[2 rows x 3 columns]