Mercurial > pytave
changeset 273:ecca6a885ffd
pyeval: Fix failing test when "sys" not imported
* pyeval.cc: Fix failing test when "sys" has not been imported into the main
namespace, using functional import form.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Fri, 29 Jul 2016 13:39:23 -0700 |
parents | 1446812ec1de |
children | 24faaa3cf5e5 |
files | pyeval.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pyeval.cc Fri Jul 29 13:33:56 2016 -0700 +++ b/pyeval.cc Fri Jul 29 13:39:23 2016 -0700 @@ -141,8 +141,7 @@ %!assert (isa (pyeval ("object()"), "pyobject")) -%!assert (isnumeric (pyeval ("sys.maxsize"))) -%!assert (isnumeric (pyeval ("-sys.maxsize"))) +%!assert (isnumeric (pyeval ("__import__('sys').maxsize"))) %!assert (pyeval ("99999999999999"), 99999999999999) %!assert (pyeval ("-99999999999999"), -99999999999999)