Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33093: 5 doctests failing related to external program octave
On Ubuntu 20.04 with 9.5.beta9 and `GNU Octave, version 5.2.0`, the command {{{ sage -t --optional=sage,octave src/doc/en/constructions/linear_algebra.rst src/doc/en/developer/coding_in_other.rst src/sage/interfaces/octave.py }}} gives {{{ Doctesting 3 files. sage -t --random-seed=53840594329377719172370096027971271567 src/doc/en/constructions/linear_algebra.rst ********************************************************************** File "src/doc/en/constructions/linear_algebra.rst", line 454, in doc.en.constructions.linear_algebra Failed example: octave.solve_linear_system(A,b) # optional - octave Exception raised: Traceback (most recent call last): File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/doctest/forker.py", line 694, in _run self.compile_and_execute(example, compiler, test.globs) File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/doctest/forker.py", line 1088, in compile_and_execute exec(compiled, globs) File "<doctest doc.en.constructions.linear_algebra[4]>", line 1, in <module> octave.solve_linear_system(A,b) # optional - octave File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/interfaces/octave.py", line 518, in solve_linear_system return eval(sol) File "<string>", line 1 [-0.333333, 0.666667, 0, ^ SyntaxError: unexpected EOF while parsing ********************************************************************** 1 item had failures: 1 of 115 in doc.en.constructions.linear_algebra [93 tests, 1 failure, 1.57 s] sage -t --random-seed=53840594329377719172370096027971271567 src/doc/en/developer/coding_in_other.rst ********************************************************************** File "src/doc/en/developer/coding_in_other.rst", line 721, in doc.en.developer.coding_in_other.solve_linear_system Failed example: octave.solve_linear_system(A,b) # optional - octave Exception raised: Traceback (most recent call last): File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/doctest/forker.py", line 694, in _run self.compile_and_execute(example, compiler, test.globs) File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/doctest/forker.py", line 1088, in compile_and_execute exec(compiled, globs) File "<doctest doc.en.developer.coding_in_other.solve_linear_system[4]>", line 1, in <module> octave.solve_linear_system(A,b) # optional - octave File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/interfaces/octave.py", line 518, in solve_linear_system return eval(sol) File "<string>", line 1 [-0.333333, 0.666667, 0, ^ SyntaxError: unexpected EOF while parsing ********************************************************************** 1 item had failures: 1 of 6 in doc.en.developer.coding_in_other.solve_linear_system [41 tests, 1 failure, 0.57 s] sage -t --random-seed=53840594329377719172370096027971271567 src/sage/interfaces/octave.py ********************************************************************** File "src/sage/interfaces/octave.py", line 158, in sage.interfaces.octave.Octave Failed example: octave.eval("a = [ 1, 1, 2; 3, 5, 8; 13, 21, 33 ]") # optional - octave Expected: 'a =\n\n 1 1 2\n 3 5 8\n 13 21 33\n\n' Got: 'a =\n\n 1 1 2\n 3 5 8\n 13 21 33\n' ********************************************************************** File "src/sage/interfaces/octave.py", line 160, in sage.interfaces.octave.Octave Failed example: octave.eval("b = [ 1; 3; 13]") # optional - octave Expected: 'b =\n\n 1\n 3\n 13\n\n' Got: 'b =\n\n 1\n 3\n 13\n' ********************************************************************** File "src/sage/interfaces/octave.py", line 495, in sage.interfaces.octave.Octave.solve_linear_system Failed example: octave.solve_linear_system(A,b) # optional - octave (and output is slightly random in low order bits) Exception raised: Traceback (most recent call last): File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/doctest/forker.py", line 694, in _run self.compile_and_execute(example, compiler, test.globs) File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/doctest/forker.py", line 1088, in compile_and_execute exec(compiled, globs) File "<doctest sage.interfaces.octave.Octave.solve_linear_system[4]>", line 1, in <module> octave.solve_linear_system(A,b) # optional - octave (and output is slightly random in low order bits) File "/home/slabbe/GitBox/sage/local/lib/python3.8/site- packages/sage/interfaces/octave.py", line 518, in solve_linear_system return eval(sol) File "<string>", line 1 [-0.333333, 0.666667, 0, ^ SyntaxError: unexpected EOF while parsing ********************************************************************** 2 items had failures: 2 of 8 in sage.interfaces.octave.Octave 1 of 6 in sage.interfaces.octave.Octave.solve_linear_system [132 tests, 3 failures, 1.06 s] ---------------------------------------------------------------------- sage -t --random-seed=53840594329377719172370096027971271567 src/doc/en/constructions/linear_algebra.rst # 1 doctest failed sage -t --random-seed=53840594329377719172370096027971271567 src/doc/en/developer/coding_in_other.rst # 1 doctest failed sage -t --random-seed=53840594329377719172370096027971271567 src/sage/interfaces/octave.py # 3 doctests failed ---------------------------------------------------------------------- }}} This is with: {{{ $ octave --version GNU Octave, version 5.2.0 Copyright (C) 2020 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Octave was configured for "x86_64-pc-linux-gnu". Additional information about Octave is available at https://www.octave.org. Please contribute if you find this software useful. For more information, visit https://www.octave.org/get-involved.html Read https://www.octave.org/bugs.html to learn how to submit bug reports. }}} A previous ticket about doctest failures with octave is #30636. URL: https://trac.sagemath.org/33093 Reported by: slabbe Ticket author(s): John Palmieri Reviewer(s): Frédéric Chapoton
- Loading branch information