#20832: Add a doctest for GLPK error handling and verbose output
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-7.3
Component: doctest coverage | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers: Matthias Koeppe
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/add_a_doctest_for_glpk_error_handling_and_verbose_output|
49bab5b43179cf847d2b18adcb398a50b058bbf6
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
{{{
sage -t --long src/sage/libs/glpk/error.pyx
**********************************************************************
File "src/sage/libs/glpk/error.pyx", line 98, in
sage.libs.glpk.error.setup_glpk_error_handler
Failed example:
p.solve()
Expected:
0: obj = 3.000000000e+00 infeas = 3.000e+00 (0)
* 1: obj = 2.000000000e+00 infeas = 0.000e+00 (0)
* 2: obj = 2.400000000e+00 infeas = 0.000e+00 (0)
+ 2: mip = not found yet <= +inf (1; 0)
+ 2: >>>>> 2.400000000e+00 <= 2.400000000e+00 0.0% (1; 0)
+ 2: mip = 2.400000000e+00 <= tree is empty 0.0% (0; 1)
2.4
Got:
0: obj = 3.000000000e+00 infeas = 3.000e+00 (0)
* 1: obj = 2.000000000e+00 infeas = 0.000e+00 (0)
* 2: obj = 2.400000000e+00 infeas = 0.000e+00 (0)
+ 2: mip = not found yet <= +inf (1; 0)
+ 2: >>>>> 2.400000000e+00 <= 2.400000000e+00 0.0% (1; 0)
+ 2: mip = 2.400000000e+00 <= tree is empty 0.0% (0; 1)
2.4000000000000004
**********************************************************************
1 item had failures:
1 of 10 in sage.libs.glpk.error.setup_glpk_error_handler
[11 tests, 1 failure, 1.10 s]
}}}
--
Ticket URL: <https://trac.sagemath.org/ticket/20832#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.