Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33628: Fig bug in graphs.RandomToleranceGraph
Part of #32544: {{{ sage -t --long --warn-long 291.5 --random- seed=184268751501867371650794470659094787547 src/sage/graphs/generators/random.py ********************************************************************** File "src/sage/graphs/generators/random.py", line 1527, in sage.graphs.generators.random.RandomToleranceGraph Failed example: g = graphs.RandomToleranceGraph(8) Exception raised: Traceback (most recent call last): File "/Users/dcoudert/sage/local/var/lib/sage/venv- python3.9/lib/python3.9/site-packages/sage/doctest/forker.py", line 695, in _run self.compile_and_execute(example, compiler, test.globs) File "/Users/dcoudert/sage/local/var/lib/sage/venv- python3.9/lib/python3.9/site-packages/sage/doctest/forker.py", line 1093, in compile_and_execute exec(compiled, globs) File "<doctest sage.graphs.generators.random.RandomToleranceGraph[0]>", line 1, in <module> g = graphs.RandomToleranceGraph(Integer(8)) File "/Users/dcoudert/sage/local/var/lib/sage/venv- python3.9/lib/python3.9/site-packages/sage/graphs/generators/random.py", line 1553, in RandomToleranceGraph return ToleranceGraph(tolrep) File "/Users/dcoudert/sage/local/var/lib/sage/venv- python3.9/lib/python3.9/site- packages/sage/graphs/generators/intersection.py", line 351, in ToleranceGraph raise ValueError("Invalid tolerance representation at position "+str(i)+"; third value must be positive!") ValueError: Invalid tolerance representation at position 2; third value must be positive! }}} Method `graphs.ToleranceGraph` raises an error when a tolerance is `<= 0`. URL: https://trac.sagemath.org/33628 Reported by: dcoudert Ticket author(s): David Coudert Reviewer(s): Travis Scrimshaw
- Loading branch information