diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2016-05-15 10:45:21 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2016-05-15 10:45:21 +0200 |
commit | 1e8d544a4adc396813b61b93611f5f41f147de56 (patch) | |
tree | c38998fc26b6d478da66080e4fdbcbf992ddac2e /numpy/lib/tests/test_function_base.py | |
parent | e96ebfc233412e8da98ae96f5c640d00f5411f6e (diff) | |
download | numpy-1e8d544a4adc396813b61b93611f5f41f147de56.tar.gz |
TST: fix test errors for Pathlib usage tests in io.py.
Pathlib was only added to the stdlib in Python 3.4, and there it
can handle string type input for a file with UTF8 encoding.
But the Patlib version on PyPi that can be installed for Python 2.7
doesn't accept strings, gives errors like:
======================================================================
ERROR: test_ndfromtxt (test_io.TestPathUsage)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/Code/numpy/numpy/testing/decorators.py", line 147, in skipper_func
return f(*args, **kwargs)
File "/home/rgommers/Code/numpy/numpy/lib/tests/test_io.py", line 1888, in test_ndfromtxt
f.write('1 2\n3 4')
TypeError: must be unicode, not str
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions