This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit aa09eef
Release Manager
Trac #28866: doctest killed due to abort in geometry/polyhedron/base.py
On a clean develop branch running `SageMath version 9.1.beta9, Release
Date: 2020-03-29`, I get:
{{{
$ sage -t --long --memlimit=3600 src/sage/geometry/polyhedron/base.py
too many failed tests, not using stored timings
Running doctests with ID 2020-04-01-21-12-24-30fbb892.
Git branch: develop
Using --optional=4ti2,build,cbc,ccache,cryptominisat,dochtml,dot2tex,e_a
ntic,glucose,latte_int,lidia,lrslib,memlimit,normaliz,notedown,openssl,p
andoc_attributes,pycosat,pynormaliz,rst2ipynb,sage,sage_numerical_backen
ds_coin,sage_numerical_backends_cplex,sage_numerical_backends_gurobi
Doctesting 1 file.
sage -t --long src/sage/geometry/polyhedron/base.py
[1485 tests, 26.12 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 26.4 seconds
cpu time: 24.0 seconds
cumulative wall time: 26.1 seconds
}}}
while
{{{
sage -t --long --memlimit=3500 src/sage/geometry/polyhedron/base.py
}}}
or
{{{
sage -t --long src/sage/geometry/polyhedron/base.py
}}}
gives
{{{
Using --optional=4ti2,build,cbc,ccache,cryptominisat,dochtml,dot2tex,e_a
ntic,glucose,latte_int,lidia,lrslib,memlimit,normaliz,notedown,openssl,p
andoc_attributes,pycosat,pynormaliz,rst2ipynb,sage,sagenb
Doctesting 1 file.
sage -t --long src/sage/geometry/polyhedron/base.py
**********************************************************************
File "src/sage/geometry/polyhedron/base.py", line 7172, in
sage.geometry.polyhedron.base.Polyhedron_base.integral_points
Failed example:
P = 1/10*polytopes.hypercube(14)
Exception raised:
Traceback (most recent call last):
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.geometry.polyhedron.base.Polyhedron_base.integral_points[12]>",
line 1, in <module>
P = Integer(1)/Integer(10)*polytopes.hypercube(Integer(14))
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/geometry/polyhedron/library.py", line 2749, in hypercube
return Polyhedron(vertices=list(itertools.product([1, -1],
repeat=dim)), base_ring=ZZ, backend=backend)
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/geometry/polyhedron/constructor.py", line 626, in
Polyhedron
return parent(Vrep, Hrep, convert=convert, verbose=verbose)
File "sage/structure/parent.pyx", line 902, in
sage.structure.parent.Parent.__call__
(build/cythonized/sage/structure/parent.c:9245)
return mor._call_with_args(x, args, kwds)
File "sage/structure/coerce_maps.pyx", line 180, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args
(build/cythonized/sage/structure/coerce_maps.c:5081)
raise
File "sage/structure/coerce_maps.pyx", line 175, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args
(build/cythonized/sage/structure/coerce_maps.c:4969)
return C._element_constructor(x, *args, **kwds)
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/geometry/polyhedron/parent.py", line 525, in
_element_constructor_
return self.element_class(self, Vrep, Hrep, **kwds)
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/geometry/polyhedron/base.py", line 121, in __init__
self._init_from_Vrepresentation(vertices, rays, lines, **kwds)
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/geometry/polyhedron/backend_ppl.py", line 93, in
_init_from_Vrepresentation
self._init_Vrepresentation_from_ppl(minimize)
File "/home/slabbe/GitBox/sage/local/lib/python3.7/site-
packages/sage/geometry/polyhedron/backend_ppl.py", line 161, in
_init_Vrepresentation_from_ppl
gs = self._ppl_polyhedron.minimized_generators()
File "ppl/polyhedron.pyx", line 335, in
ppl.polyhedron.Polyhedron.minimized_generators
RuntimeError: Aborted
**********************************************************************
...
Killed due to abort
**********************************************************************
Tests run before process (pid=19555) failed:
sage: p = polytopes.hypercube(2) ## line 71 ##
sage: from sage.geometry.polyhedron.base import is_Polyhedron ## line 72
##
sage: is_Polyhedron(p) ## line 73 ##
True
...
sage: v = [(1,0,7,-1), (-2,-2,4,-3), (-1,-1,-1,4), (2,9,0,-5),
(-2,-1,5,1)] ## line 7164 ##
sage: simplex = Polyhedron(v); simplex ## line 7165 ##
A 4-dimensional polyhedron in ZZ^4 defined as the convex hull of 5
vertices
sage: len(simplex.integral_points()) ## line 7167 ##
49
sage: P = 1/10*polytopes.hypercube(14) ## line 7172 ##
sig_error() without sig_on()
----------------------------------------------------------------------
sage -t --long src/sage/geometry/polyhedron/base.py # Killed due to
abort
----------------------------------------------------------------------
}}}
URL: https://trac.sagemath.org/28866
Reported by: slabbe
Ticket author(s): Jonathan Kliem
Reviewer(s): Sébastien Labbé, Michael Orlitzky, Matthias KoeppeFile tree
5 files changed
+138
-91
lines changed- src/sage
- geometry
- polyhedron
- triangulation
- plot
5 files changed
+138
-91
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | | - | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
137 | 170 | | |
138 | 171 | | |
139 | 172 | | |
| |||
144 | 177 | | |
145 | 178 | | |
146 | 179 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
151 | 191 | | |
| 192 | + | |
| 193 | + | |
152 | 194 | | |
153 | 195 | | |
154 | 196 | | |
| |||
1080 | 1122 | | |
1081 | 1123 | | |
1082 | 1124 | | |
1083 | | - | |
1084 | | - | |
1085 | 1125 | | |
1086 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
1087 | 1129 | | |
| 1130 | + | |
1088 | 1131 | | |
1089 | 1132 | | |
1090 | 1133 | | |
| |||
4461 | 4504 | | |
4462 | 4505 | | |
4463 | 4506 | | |
4464 | | - | |
4465 | | - | |
4466 | | - | |
4467 | | - | |
4468 | | - | |
4469 | | - | |
4470 | | - | |
4471 | | - | |
4472 | | - | |
4473 | | - | |
4474 | | - | |
4475 | | - | |
4476 | | - | |
4477 | | - | |
4478 | | - | |
4479 | | - | |
4480 | | - | |
4481 | | - | |
4482 | | - | |
4483 | | - | |
4484 | | - | |
4485 | | - | |
4486 | | - | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
4487 | 4510 | | |
4488 | 4511 | | |
4489 | 4512 | | |
4490 | 4513 | | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
4491 | 4528 | | |
4492 | 4529 | | |
4493 | | - | |
| 4530 | + | |
4494 | 4531 | | |
4495 | 4532 | | |
4496 | 4533 | | |
| |||
5622 | 5659 | | |
5623 | 5660 | | |
5624 | 5661 | | |
5625 | | - | |
| 5662 | + | |
5626 | 5663 | | |
5627 | 5664 | | |
5628 | 5665 | | |
5629 | 5666 | | |
5630 | 5667 | | |
5631 | | - | |
| 5668 | + | |
5632 | 5669 | | |
5633 | | - | |
| 5670 | + | |
5634 | 5671 | | |
5635 | 5672 | | |
5636 | | - | |
| 5673 | + | |
5637 | 5674 | | |
5638 | | - | |
| 5675 | + | |
5639 | 5676 | | |
5640 | 5677 | | |
5641 | 5678 | | |
| |||
7958 | 7995 | | |
7959 | 7996 | | |
7960 | 7997 | | |
7961 | | - | |
7962 | | - | |
| 7998 | + | |
| 7999 | + | |
7963 | 8000 | | |
7964 | 8001 | | |
7965 | 8002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | 344 | | |
| 345 | + | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
387 | 385 | | |
388 | | - | |
389 | | - | |
| 386 | + | |
| 387 | + | |
390 | 388 | | |
391 | 389 | | |
| 390 | + | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | 424 | | |
427 | 425 | | |
428 | | - | |
429 | | - | |
| 426 | + | |
| 427 | + | |
430 | 428 | | |
431 | | - | |
432 | | - | |
433 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2831 | 2831 | | |
2832 | 2832 | | |
2833 | 2833 | | |
2834 | | - | |
2835 | 2834 | | |
2836 | 2835 | | |
2837 | 2836 | | |
2838 | 2837 | | |
2839 | | - | |
2840 | | - | |
2841 | | - | |
2842 | | - | |
2843 | 2838 | | |
2844 | 2839 | | |
2845 | | - | |
2846 | | - | |
2847 | | - | |
2848 | | - | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
2849 | 2846 | | |
2850 | 2847 | | |
2851 | | - | |
2852 | | - | |
2853 | | - | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
2854 | 2853 | | |
2855 | 2854 | | |
2856 | 2855 | | |
| |||
2864 | 2863 | | |
2865 | 2864 | | |
2866 | 2865 | | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
2870 | | - | |
| 2866 | + | |
2871 | 2867 | | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
2872 | 2872 | | |
2873 | 2873 | | |
2874 | | - | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2875 | 2885 | | |
2876 | 2886 | | |
2877 | 2887 | | |
| |||
2970 | 2980 | | |
2971 | 2981 | | |
2972 | 2982 | | |
2973 | | - | |
| 2983 | + | |
2974 | 2984 | | |
2975 | | - | |
| 2985 | + | |
2976 | 2986 | | |
2977 | 2987 | | |
2978 | 2988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
| 742 | + | |
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3403 | 3403 | | |
3404 | 3404 | | |
3405 | 3405 | | |
3406 | | - | |
3407 | | - | |
3408 | | - | |
3409 | | - | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
3410 | 3409 | | |
3411 | | - | |
| 3410 | + | |
| 3411 | + | |
3412 | 3412 | | |
3413 | 3413 | | |
3414 | 3414 | | |
| |||
0 commit comments