Mercurial > pytave
changeset 308:72ecb31b163a
Fix some pyobject doctests
* @pyobject/dummy.m: Fix tests to work for both python2 and python3 taking
into account the latest changes in pytave to drop conversion of lists, dicts &
tuples.
author | Abhinav Tripathi <genuinelucifer@gmail.com> |
---|---|
date | Tue, 09 Aug 2016 11:49:30 -0700 |
parents | 616ec5f18d95 |
children | 94617b6a6554 |
files | @pyobject/dummy.m |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/@pyobject/dummy.m Mon Aug 08 17:34:09 2016 -0700 +++ b/@pyobject/dummy.m Tue Aug 09 11:49:30 2016 -0700 @@ -34,7 +34,7 @@ ## @result{} ans = ## @{ ## [1,1] = bit_length -## [2,1] = conjugate +## ... ## @} ## ## sort (fieldnames (g)) @@ -75,12 +75,11 @@ ## We can accesss ``callables'' (methods) of objects: ## @example ## @group -## x.keys () -## @result{} ans = -## @{ -## [1,1] = two -## [1,2] = one -## @} +## keyslist = py.list (x.keys ()); +## keyslist.sort (); +## keyslist +## @result{} keyslist = [pyobject ...] +## ['one', 'two'] ## @end group ## @end example ##