Commit fea98bf
authored
* bpo-30523: regrtest --list-cases --match (#2401)
* regrtest --list-cases now supports --match and --match-file options.
Example: ./python -m test --list-cases -m FileTests test_os
* --list-cases now also sets support.verbose to False to prevent
messages to stdout when loading test modules.
* Add support._match_test() private function.
(cherry picked from commit ace56d5)
(cherry picked from commit 36946c0)
* bpo-30764: regrtest: add --fail-env-changed option (#2402)
* bpo-30764: regrtest: change exit code on failure
* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted
* bpo-30764: regrtest: add --fail-env-changed option
If the option is set, mark a test as failed if it alters the
environment, for example if it creates a file without removing it.
(cherry picked from commit 63f54c6)
(cherry picked from commit 1f33857)
* bpo-30776: reduce regrtest -R false positives (#2422)
* Change the regrtest --huntrleaks checker to decide if a test file
leaks or not. Require that each run leaks at least 1 reference.
* Warmup runs are now completely ignored: ignored in the checker test
and not used anymore to compute the sum.
* Add an unit test for a reference leak.
Example of reference differences previously considered a failure
(leak) and now considered as success (success, no leak):
[3, 0, 0]
[0, 1, 0]
[8, -8, 1]
(cherry picked from commit 48b5c42)
(cherry picked from commit e0f8b43)
1 parent 2d77558 commit fea98bfCopy full SHA for fea98bf
3 files changed
+148-42Lines changed: 148 additions & 42 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Lib/test
- support
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+34-6Lines changed: 34 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
| 70 | + |
| 71 | + |
70 | 72 | |
71 | 73 | |
72 | 74 | |
| ||
327 | 329 | |
328 | 330 | |
329 | 331 | |
330 | | - |
| 332 | + |
331 | 333 | |
332 | 334 | |
333 | 335 | |
| ||
339 | 341 | |
340 | 342 | |
341 | 343 | |
| 344 | + |
342 | 345 | |
343 | 346 | |
344 | 347 | |
| ||
439 | 442 | |
440 | 443 | |
441 | 444 | |
| 445 | + |
| 446 | + |
442 | 447 | |
443 | 448 | |
444 | 449 | |
| ||
558 | 563 | |
559 | 564 | |
560 | 565 | |
561 | | - |
| 566 | + |
562 | 567 | |
563 | 568 | |
564 | 569 | |
| ||
908 | 913 | |
909 | 914 | |
910 | 915 | |
| 916 | + |
| 917 | + |
911 | 918 | |
912 | 919 | |
913 | 920 | |
914 | 921 | |
915 | | - |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
| 928 | + |
916 | 929 | |
917 | 930 | |
918 | 931 | |
| ||
1310 | 1323 | |
1311 | 1324 | |
1312 | 1325 | |
1313 | | - |
| 1326 | + |
| 1327 | + |
| 1328 | + |
| 1329 | + |
| 1330 | + |
| 1331 | + |
| 1332 | + |
| 1333 | + |
| 1334 | + |
| 1335 | + |
| 1336 | + |
| 1337 | + |
1314 | 1338 | |
1315 | 1339 | |
1316 | 1340 | |
| ||
1501 | 1525 | |
1502 | 1526 | |
1503 | 1527 | |
1504 | | - |
| 1528 | + |
| 1529 | + |
| 1530 | + |
| 1531 | + |
| 1532 | + |
| 1533 | + |
1505 | 1534 | |
1506 | | - |
1507 | 1535 | |
1508 | 1536 | |
1509 | 1537 | |
|
Collapse file
Lib/test/support/__init__.py
Copy file name to clipboardExpand all lines: Lib/test/support/__init__.py+18-14Lines changed: 18 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1542 | 1542 | |
1543 | 1543 | |
1544 | 1544 | |
| 1545 | + |
| 1546 | + |
| 1547 | + |
| 1548 | + |
| 1549 | + |
| 1550 | + |
| 1551 | + |
| 1552 | + |
| 1553 | + |
| 1554 | + |
| 1555 | + |
| 1556 | + |
| 1557 | + |
| 1558 | + |
| 1559 | + |
| 1560 | + |
| 1561 | + |
1545 | 1562 | |
1546 | 1563 | |
1547 | 1564 | |
| ||
1556 | 1573 | |
1557 | 1574 | |
1558 | 1575 | |
1559 | | - |
1560 | | - |
1561 | | - |
1562 | | - |
1563 | | - |
1564 | | - |
1565 | | - |
1566 | | - |
1567 | | - |
1568 | | - |
1569 | | - |
1570 | | - |
1571 | | - |
1572 | | - |
| 1576 | + |
1573 | 1577 | |
1574 | 1578 | |
1575 | 1579 | |
|
Collapse file
+96-22Lines changed: 96 additions & 22 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
| 95 | + |
| 96 | + |
95 | 97 | |
96 | 98 | |
97 | 99 | |
98 | 100 | |
99 | 101 | |
100 | 102 | |
| 103 | + |
| 104 | + |
101 | 105 | |
102 | 106 | |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | 107 | |
108 | 108 | |
109 | 109 | |
| ||
129 | 129 | |
130 | 130 | |
131 | 131 | |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
132 | 137 | |
133 | 138 | |
134 | 139 | |
135 | 140 | |
136 | | - |
| 141 | + |
| 142 | + |
137 | 143 | |
138 | 144 | |
139 | 145 | |
| ||
143 | 149 | |
144 | 150 | |
145 | 151 | |
146 | | - |
| 152 | + |
147 | 153 | |
148 | 154 | |
149 | 155 | |
| 156 | + |
| 157 | + |
150 | 158 | |
151 | 159 | |
152 | 160 | |
| ||
325 | 333 | |
326 | 334 | |
327 | 335 | |
328 | | - |
| 336 | + |
329 | 337 | |
330 | 338 | |
331 | 339 | |
| ||
394 | 402 | |
395 | 403 | |
396 | 404 | |
397 | | - |
| 405 | + |
398 | 406 | |
399 | 407 | |
400 | 408 | |
| ||
423 | 431 | |
424 | 432 | |
425 | 433 | |
426 | | - |
| 434 | + |
427 | 435 | |
428 | 436 | |
429 | 437 | |
| ||
461 | 469 | |
462 | 470 | |
463 | 471 | |
464 | | - |
| 472 | + |
465 | 473 | |
466 | 474 | |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
| 484 | + |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
467 | 513 | |
468 | 514 | |
469 | 515 | |
470 | 516 | |
471 | 517 | |
472 | 518 | |
473 | 519 | |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
| 540 | + |
| 541 | + |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
474 | 546 | |
475 | 547 | |
476 | 548 | |
477 | 549 | |
478 | 550 | |
479 | 551 | |
480 | 552 | |
481 | | - |
| 553 | + |
482 | 554 | |
483 | 555 | |
484 | 556 | |
| ||
532 | 604 | |
533 | 605 | |
534 | 606 | |
535 | | - |
536 | | - |
| 607 | + |
537 | 608 | |
538 | 609 | |
539 | 610 | |
540 | 611 | |
541 | 612 | |
542 | | - |
543 | | - |
544 | | - |
545 | | - |
| 613 | + |
| 614 | + |
546 | 615 | |
547 | 616 | |
548 | 617 | |
549 | 618 | |
550 | 619 | |
551 | | - |
552 | | - |
553 | | - |
554 | | - |
| 620 | + |
| 621 | + |
| 622 | + |
| 623 | + |
| 624 | + |
| 625 | + |
| 626 | + |
| 627 | + |
| 628 | + |
555 | 629 | |
556 | 630 | |
557 | 631 | |
|
0 commit comments