diff options
Diffstat (limited to 'numpy/tests')
-rw-r--r-- | numpy/tests/test_ctypeslib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/tests/test_ctypeslib.py b/numpy/tests/test_ctypeslib.py index e9729a676..ac351191a 100644 --- a/numpy/tests/test_ctypeslib.py +++ b/numpy/tests/test_ctypeslib.py @@ -86,14 +86,14 @@ class TestNdpointer(TestCase): self.assertTrue(p.from_param(np.array(1))) def test_flags(self): - x = np.array([[1,2,3]], order='F') + x = np.array([[1,2],[3,4]], order='F') p = ndpointer(flags='FORTRAN') self.assertTrue(p.from_param(x)) p = ndpointer(flags='CONTIGUOUS') self.assertRaises(TypeError, p.from_param, x) p = ndpointer(flags=x.flags.num) self.assertTrue(p.from_param(x)) - self.assertRaises(TypeError, p.from_param, np.array([[1,2,3]])) + self.assertRaises(TypeError, p.from_param, np.array([[1,2],[3,4]])) if __name__ == "__main__": |