This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit cf0c05c
committed
Trac #31395: eliminate the --memlimit option to the doctest runner.
Testing is currently impossible on Gentoo because the default memory
limit imposed by the doctest runner is too low for sage to function.
Rather than increase the limit once again, this commit removes the
memory limit entirely. This is not as huge of a change as it seems,
and the choice was made for three reasons:
* Having a default limit occasionally breaks all testing on some
platforms and requires the limit to be increased manually.
* Setting a limit only works reliably on Linux where there are
easier, more standard ways to set one (like ulimit -v).
* There's only one test in the sage library that requires a memory
limit to be set, and having one global memory limit would probably
not be the correct approach if more tests requiring one were
added.
This commit removes the --memlimit option, the corresponding code to
set a soft limit, and the support for the "optional - memlimit"
tag. The default memory limit was also thereby eliminated. The one
test that requires a memory limit was refactored to set its own memory
limit on linux.
This reintroduces some boilerplate to the lone test that requires a
memory limit, but eliminates a recurring problem (the default limit
being too low) in the doctest runner at large. In the future, the
memory limit in that one test may need to be updated, but the absence
of a global limit should allow the doctest runner to function normally
up until that point.1 parent 5cb72aa commit cf0c05c
File tree
6 files changed
+21
-70
lines changed- src
- bin
- sage
- doctest
- tests
- matrix
6 files changed
+21
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
| |||
135 | 130 | | |
136 | 131 | | |
137 | 132 | | |
138 | | - | |
139 | | - | |
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 | | - | |
170 | | - | |
171 | 133 | | |
172 | 134 | | |
173 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
381 | 380 | | |
382 | 381 | | |
383 | 382 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 383 | | |
389 | 384 | | |
390 | 385 | | |
| |||
1013 | 1008 | | |
1014 | 1009 | | |
1015 | 1010 | | |
1016 | | - | |
| 1011 | + | |
1017 | 1012 | | |
1018 | 1013 | | |
1019 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 491 | | |
496 | 492 | | |
497 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | 514 | | |
529 | 515 | | |
530 | 516 | | |
| |||
558 | 544 | | |
559 | 545 | | |
560 | 546 | | |
561 | | - | |
562 | 547 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 171 | | |
176 | 172 | | |
177 | 173 | | |
| |||
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
183 | 199 | | |
184 | 200 | | |
185 | 201 | | |
| |||
0 commit comments