Mercurial > pytave
changeset 319:1231dc878600
Remove unnecessary import in test
* @pyobject/subsref.m: Refactor test.
author | Colin Macdonald <cbm@m.fsf.org> |
---|---|
date | Wed, 10 Aug 2016 10:21:22 -0700 |
parents | 6f03249847fa |
children | c2aa34730dc9 |
files | @pyobject/subsref.m |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/@pyobject/subsref.m Wed Aug 10 00:52:55 2016 -0700 +++ b/@pyobject/subsref.m Wed Aug 10 10:21:22 2016 -0700 @@ -136,8 +136,7 @@ %!test %! % 2D array indexing -%! pyexec ("import numpy") -%! A = pyobject (pyeval ("numpy.array([[1, 2], [3, 4]])")); +%! A = pyobject ([1 2; 3 4]); %! assert (A{1, 1}, 1) %! assert (A{2, 1}, 3) %! assert (A{1, 2}, 2)