Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #28689: py3: fix doctests with cbc
The following doctests are failing with py3 and cbc, but not with py2. This is due to a different behavior of `round` called in `get_variable_value`. {{{ Using --optional=benzene,bliss,build,cbc,csdp,dochtml,dot2tex,gap_packag es,gfortran,igraph,libsemigroups,mcqd,mpir,plantri,python_igraph,sage,td lib Doctesting 1 file using 4 threads. sage -t --long src/sage/numerical/backends/coin_backend.pyx ********************************************************************** File "src/sage/numerical/backends/coin_backend.pyx", line 423, in sage.numerical.backends.coin_backend.CoinBackend.remove_constraint Failed example: p.get_values([x,y]) # optional - cbc Expected: [0.0, 3.0] Got: [0, 3] ********************************************************************** File "src/sage/numerical/backends/coin_backend.pyx", line 461, in sage.numerical.backends.coin_backend.CoinBackend.remove_constraints Failed example: p.get_values(x) # optional - cbc Expected: 2.0... Got: 2 ********************************************************************** File "src/sage/numerical/backends/coin_backend.pyx", line 463, in sage.numerical.backends.coin_backend.CoinBackend.remove_constraints Failed example: p.get_values(y) # optional - cbc Expected: 0.0... Got: 0 ********************************************************************** File "src/sage/numerical/backends/coin_backend.pyx", line 468, in sage.numerical.backends.coin_backend.CoinBackend.remove_constraints Failed example: p.get_values([x,y]) # optional - cbc Expected: [0.0, 3.0] Got: [0, 3] ********************************************************************** 2 items had failures: 1 of 13 in sage.numerical.backends.coin_backend.CoinBackend.remove_constraint 3 of 15 in sage.numerical.backends.coin_backend.CoinBackend.remove_constraints [353 tests, 4 failures, 0.34 s] }}} URL: https://trac.sagemath.org/28689 Reported by: dcoudert Ticket author(s): David Coudert Reviewer(s): John Palmieri
- Loading branch information