Mercurial > pytave
changeset 384:c6e93e7dcfba
Make test suite compatible with Octave 4.2
* __py_tests__.m: Handle old and new forms of the test function to remain
compatible with Octave 4.2.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Sun, 02 Apr 2017 15:29:34 -0700 |
parents | d18843ff4dfd |
children | 132fec49e438 |
files | __py_tests__.m |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/__py_tests__.m Sun Apr 02 11:20:53 2017 -0700 +++ b/__py_tests__.m Sun Apr 02 15:29:34 2017 -0700 @@ -42,7 +42,12 @@ f = varargin{i}; if (has_tests (f)) print_test_file_name (f); - [p, n, xf, sk, rtsk] = test (f, "quiet", fid); + if (nargout ("test") < 5) + rtsk = 0; + [p, n, xf, sk] = test (f, "quiet", fid); + else + [p, n, xf, sk, rtsk] = test (f, "quiet", fid); + endif print_pass_fail (p, n, xf, sk, rtsk); dp += p; dn += n;