diff options
author | mattip <matti.picus@gmail.com> | 2018-11-13 11:15:14 -0800 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-11-13 11:15:14 -0800 |
commit | 62e47c34b39aebb9a7a6aa41e9af3b2e119a2d74 (patch) | |
tree | 506e36530c9b3bfccf5c1990975ec10bc6ffffab /numpy/lib/tests/test_format.py | |
parent | 1956ada852f950468e028cf108766e089f4575cc (diff) | |
download | numpy-62e47c34b39aebb9a7a6aa41e9af3b2e119a2d74.tar.gz |
BUG: fix for titles, cleanup, fixes from review
Diffstat (limited to 'numpy/lib/tests/test_format.py')
-rw-r--r-- | numpy/lib/tests/test_format.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py index 13a12197c..0d7c7f7e0 100644 --- a/numpy/lib/tests/test_format.py +++ b/numpy/lib/tests/test_format.py @@ -533,7 +533,11 @@ dt2 = np.dtype({'names': ['a', 'b'], 'formats': ['i4', 'i4'], dt3 = np.dtype({'names': ['c', 'd'], 'formats': ['i4', dt2]}) # field with '' name dt4 = np.dtype({'names': ['a', '', 'b'], 'formats': ['i4']*3}) -@pytest.mark.parametrize("dt", [dt1, dt2, dt3, dt4]) +# titles +dt5 = np.dtype({'names': ['a', 'b'], 'formats': ['i4', 'i4'], + 'offsets': [1, 6], 'titles': ['aa', 'bb']}) + +@pytest.mark.parametrize("dt", [dt1, dt2, dt3, dt4, dt5]) def test_load_padded_dtype(dt): arr = np.zeros(3, dt) for i in range(3): |