diff options
author | Allan Haldane <allan.haldane@gmail.com> | 2015-07-28 09:36:02 -0400 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2017-09-07 16:47:39 -0400 |
commit | 50f4d0d810efbc8a3e3a4bdf8908faa9df4aa710 (patch) | |
tree | 0c5095946d694d19b0496db74f5fac0950955f19 /numpy/lib | |
parent | 7412b85a1b4920e5b72ab694e51b11e4cb615866 (diff) | |
download | numpy-50f4d0d810efbc8a3e3a4bdf8908faa9df4aa710.tar.gz |
TST: Fix/Remove old unit tests for structure assignment
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/tests/test_io.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index f2fd37230..e6b1eac7a 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -1178,12 +1178,12 @@ M 33 21.99 conv = {0: int, 1: int, 2: int, 3: lambda r: dmap[r.decode()]} test = np.recfromcsv(TextIO(dstr,), dtype=dtyp, delimiter=',', names=None, converters=conv) - control = np.rec.array([[1,5,-1,0], [2,8,-1,1], [3,3,-2,3]], dtype=dtyp) + control = np.rec.array([(1,5,-1,0), (2,8,-1,1), (3,3,-2,3)], dtype=dtyp) assert_equal(test, control) dtyp = [('e1','i4'),('e2','i4'),('n', 'i1')] test = np.recfromcsv(TextIO(dstr,), dtype=dtyp, delimiter=',', usecols=(0,1,3), names=None, converters=conv) - control = np.rec.array([[1,5,0], [2,8,1], [3,3,3]], dtype=dtyp) + control = np.rec.array([(1,5,0), (2,8,1), (3,3,3)], dtype=dtyp) assert_equal(test, control) def test_dtype_with_object(self): |