summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_recfunctions.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2019-08-16 16:50:30 -0700
committerEric Wieser <wieser.eric@gmail.com>2019-08-19 17:24:54 -0500
commit5fbce6d395a6bfd1ec25022dcee4eef8c5bbad17 (patch)
tree146c93655ae2d59e4520b9f9f46e2a6831e80709 /numpy/lib/tests/test_recfunctions.py
parentf07a38da97a6a36eb12b203f6c1ffa4bf2b2cb87 (diff)
downloadnumpy-5fbce6d395a6bfd1ec25022dcee4eef8c5bbad17.tar.gz
BUG: Make np.record work on structured fields with no fields
This replaces some more uses of `bool(dt.fields)` and `bool(dt.names)` with `dt.names is not None`. `dt.fields is not None` would have worked too, but checking `.names` is more prevalent elsewhere
Diffstat (limited to 'numpy/lib/tests/test_recfunctions.py')
0 files changed, 0 insertions, 0 deletions