diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2012-10-21 17:56:36 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2012-10-21 17:56:36 +0200 |
commit | fb64bbf12f2405b3dc97f7736ae3dc35daf615dc (patch) | |
tree | 5c2d581d12bfa00ba1f61a8fec02139506905803 /numpy/tests | |
parent | b46f589439201afabbcc9be586617e395ccc6c19 (diff) | |
download | numpy-fb64bbf12f2405b3dc97f7736ae3dc35daf615dc.tar.gz |
TST: Update ctypes tests for changed contiguous flags setting.
This is unrelated to what is actually tested here.
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__": |