# HG changeset patch # User Abhinav Tripathi # Date 1470768570 25200 # Node ID 72ecb31b163a1594f6ad50d770f9353a4c1d1b78 # Parent 616ec5f18d957efa1920f22425991ed4e6d3ac9e 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. diff -r 616ec5f18d95 -r 72ecb31b163a @pyobject/dummy.m --- 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 ##