summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test__iotools.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-05-14 15:55:41 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-05-18 16:44:26 -0500
commit8bc4701bbfbcfafb2be634d41a2611bd0182d344 (patch)
tree118258b5b57b57ea71a88a5be9cb9df50e50f5fd /numpy/lib/tests/test__iotools.py
parent77410e26dd94bdd07df096be06ee9aa7d5738ce6 (diff)
downloadnumpy-8bc4701bbfbcfafb2be634d41a2611bd0182d344.tar.gz
BUG: Fix default fallback in genfromtxt
This affected (for example?) if the `dtype=object` was used without a converter, meaning that the default one is used. And this is currently the last one, which is `string_` (and thus bytes). Closes gh-16189
Diffstat (limited to 'numpy/lib/tests/test__iotools.py')
-rw-r--r--numpy/lib/tests/test__iotools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test__iotools.py b/numpy/lib/tests/test__iotools.py
index 6964c1128..a5b787025 100644
--- a/numpy/lib/tests/test__iotools.py
+++ b/numpy/lib/tests/test__iotools.py
@@ -177,12 +177,12 @@ class TestStringConverter:
# test str
# note that the longdouble type has been skipped, so the
# _status increases by 2. Everything should succeed with
- # unicode conversion (5).
+ # unicode conversion (8).
for s in ['a', b'a']:
res = converter.upgrade(s)
assert_(type(res) is str)
assert_equal(res, 'a')
- assert_equal(converter._status, 5 + status_offset)
+ assert_equal(converter._status, 8 + status_offset)
def test_missing(self):
"Tests the use of missing values."