The Buildbot has detected a new failure on builder AMD64 Fedora Rawhide
Refleaks 3.12 while building Python.
Full details are available at:
https://buildbot.python.org/all/#/builders/1105/builds/366
Buildbot URL: https://buildbot.python.org/all/
Worker for this Build: cstratak-fedora-rawhide-x86_64
Build Reason: <unknown>
Blamelist:
BUILD FAILED: failed compile (failure)
Summary of the results of the build (if available):
===================================================
Captured traceback
==================
remote: Enumerating objects: 136, done.
remote: Counting objects: 0% (1/133)
remote: Counting objects: 1% (2/133)
remote: Counting objects: 2% (3/133)
remote: Counting objects: 3% (4/133)
remote: Counting objects: 4% (6/133)
remote: Counting objects: 5% (7/133)
remote: Counting objects: 6% (8/133)
remote: Counting objects: 7% (10/133)
remote: Counting objects: 8% (11/133)
remote: Counting objects: 9% (12/133)
remote: Counting objects: 10% (14/133)
remote: Counting objects: 11% (15/133)
remote: Counting objects: 12% (16/133)
remote: Counting objects: 13% (18/133)
remote: Counting objects: 14% (19/133)
remote: Counting objects: 15% (20/133)
remote: Counting objects: 16% (22/133)
remote: Counting objects: 17% (23/133)
remote: Counting objects: 18% (24/133)
remote: Counting objects: 19% (26/133)
remote: Counting objects: 20% (27/133)
remote: Counting objects: 21% (28/133)
remote: Counting objects: 22% (30/133)
remote: Counting objects: 23% (31/133)
remote: Counting objects: 24% (32/133)
remote: Counting objects: 25% (34/133)
remote: Counting objects: 26% (35/133)
remote: Counting objects: 27% (36/133)
remote: Counting objects: 28% (38/133)
remote: Counting objects: 29% (39/133)
remote: Counting objects: 30% (40/133)
remote: Counting objects: 31% (42/133)
remote: Counting objects: 32% (43/133)
remote: Counting objects: 33% (44/133)
remote: Counting objects: 34% (46/133)
remote: Counting objects: 35% (47/133)
remote: Counting objects: 36% (48/133)
remote: Counting objects: 37% (50/133)
remote: Counting objects: 38% (51/133)
remote: Counting objects: 39% (52/133)
remote: Counting objects: 40% (54/133)
remote: Counting objects: 41% (55/133)
remote: Counting objects: 42% (56/133)
remote: Counting objects: 43% (58/133)
remote: Counting objects: 44% (59/133)
remote: Counting objects: 45% (60/133)
remote: Counting objects: 46% (62/133)
remote: Counting objects: 47% (63/133)
remote: Counting objects: 48% (64/133)
remote: Counting objects: 49% (66/133)
remote: Counting objects: 50% (67/133)
remote: Counting objects: 51% (68/133)
remote: Counting objects: 52% (70/133)
remote: Counting objects: 53% (71/133)
remote: Counting objects: 54% (72/133)
remote: Counting objects: 55% (74/133)
remote: Counting objects: 56% (75/133)
remote: Counting objects: 57% (76/133)
remote: Counting objects: 58% (78/133)
remote: Counting objects: 59% (79/133)
remote: Counting objects: 60% (80/133)
remote: Counting objects: 61% (82/133)
remote: Counting objects: 62% (83/133)
remote: Counting objects: 63% (84/133)
remote: Counting objects: 64% (86/133)
remote: Counting objects: 65% (87/133)
remote: Counting objects: 66% (88/133)
remote: Counting objects: 67% (90/133)
remote: Counting objects: 68% (91/133)
remote: Counting objects: 69% (92/133)
remote: Counting objects: 70% (94/133)
remote: Counting objects: 71% (95/133)
remote: Counting objects: 72% (96/133)
remote: Counting objects: 73% (98/133)
remote: Counting objects: 74% (99/133)
remote: Counting objects: 75% (100/133)
remote: Counting objects: 76% (102/133)
remote: Counting objects: 77% (103/133)
remote: Counting objects: 78% (104/133)
remote: Counting objects: 79% (106/133)
remote: Counting objects: 80% (107/133)
remote: Counting objects: 81% (108/133)
remote: Counting objects: 82% (110/133)
remote: Counting objects: 83% (111/133)
remote: Counting objects: 84% (112/133)
remote: Counting objects: 85% (114/133)
remote: Counting objects: 86% (115/133)
remote: Counting objects: 87% (116/133)
remote: Counting objects: 88% (118/133)
remote: Counting objects: 89% (119/133)
remote: Counting objects: 90% (120/133)
remote: Counting objects: 91% (122/133)
remote: Counting objects: 92% (123/133)
remote: Counting objects: 93% (124/133)
remote: Counting objects: 94% (126/133)
remote: Counting objects: 95% (127/133)
remote: Counting objects: 96% (128/133)
remote: Counting objects: 97% (130/133)
remote: Counting objects: 98% (131/133)
remote: Counting objects: 99% (132/133)
remote: Counting objects: 100% (133/133)
remote: Counting objects: 100% (133/133), done.
remote: Compressing objects: 1% (1/98)
remote: Compressing objects: 2% (2/98)
remote: Compressing objects: 3% (3/98)
remote: Compressing objects: 4% (4/98)
remote: Compressing objects: 5% (5/98)
remote: Compressing objects: 6% (6/98)
remote: Compressing objects: 7% (7/98)
remote: Compressing objects: 8% (8/98)
remote: Compressing objects: 9% (9/98)
remote: Compressing objects: 10% (10/98)
remote: Compressing objects: 11% (11/98)
remote: Compressing objects: 12% (12/98)
remote: Compressing objects: 13% (13/98)
remote: Compressing objects: 14% (14/98)
remote: Compressing objects: 15% (15/98)
remote: Compressing objects: 16% (16/98)
remote: Compressing objects: 17% (17/98)
remote: Compressing objects: 18% (18/98)
remote: Compressing objects: 19% (19/98)
remote: Compressing objects: 20% (20/98)
remote: Compressing objects: 21% (21/98)
remote: Compressing objects: 22% (22/98)
remote: Compressing objects: 23% (23/98)
remote: Compressing objects: 24% (24/98)
remote: Compressing objects: 25% (25/98)
remote: Compressing objects: 26% (26/98)
remote: Compressing objects: 27% (27/98)
remote: Compressing objects: 28% (28/98)
remote: Compressing objects: 29% (29/98)
remote: Compressing objects: 30% (30/98)
remote: Compressing objects: 31% (31/98)
remote: Compressing objects: 32% (32/98)
remote: Compressing objects: 33% (33/98)
remote: Compressing objects: 34% (34/98)
remote: Compressing objects: 35% (35/98)
remote: Compressing objects: 36% (36/98)
remote: Compressing objects: 37% (37/98)
remote: Compressing objects: 38% (38/98)
remote: Compressing objects: 39% (39/98)
remote: Compressing objects: 40% (40/98)
remote: Compressing objects: 41% (41/98)
remote: Compressing objects: 42% (42/98)
remote: Compressing objects: 43% (43/98)
remote: Compressing objects: 44% (44/98)
remote: Compressing objects: 45% (45/98)
remote: Compressing objects: 46% (46/98)
remote: Compressing objects: 47% (47/98)
remote: Compressing objects: 48% (48/98)
remote: Compressing objects: 50% (49/98)
remote: Compressing objects: 51% (50/98)
remote: Compressing objects: 52% (51/98)
remote: Compressing objects: 53% (52/98)
remote: Compressing objects: 54% (53/98)
remote: Compressing objects: 55% (54/98)
remote: Compressing objects: 56% (55/98)
remote: Compressing objects: 57% (56/98)
remote: Compressing objects: 58% (57/98)
remote: Compressing objects: 59% (58/98)
remote: Compressing objects: 60% (59/98)
remote: Compressing objects: 61% (60/98)
remote: Compressing objects: 62% (61/98)
remote: Compressing objects: 63% (62/98)
remote: Compressing objects: 64% (63/98)
remote: Compressing objects: 65% (64/98)
remote: Compressing objects: 66% (65/98)
remote: Compressing objects: 67% (66/98)
remote: Compressing objects: 68% (67/98)
remote: Compressing objects: 69% (68/98)
remote: Compressing objects: 70% (69/98)
remote: Compressing objects: 71% (70/98)
remote: Compressing objects: 72% (71/98)
remote: Compressing objects: 73% (72/98)
remote: Compressing objects: 74% (73/98)
remote: Compressing objects: 75% (74/98)
remote: Compressing objects: 76% (75/98)
remote: Compressing objects: 77% (76/98)
remote: Compressing objects: 78% (77/98)
remote: Compressing objects: 79% (78/98)
remote: Compressing objects: 80% (79/98)
remote: Compressing objects: 81% (80/98)
remote: Compressing objects: 82% (81/98)
remote: Compressing objects: 83% (82/98)
remote: Compressing objects: 84% (83/98)
remote: Compressing objects: 85% (84/98)
remote: Compressing objects: 86% (85/98)
remote: Compressing objects: 87% (86/98)
remote: Compressing objects: 88% (87/98)
remote: Compressing objects: 89% (88/98)
remote: Compressing objects: 90% (89/98)
remote: Compressing objects: 91% (90/98)
remote: Compressing objects: 92% (91/98)
remote: Compressing objects: 93% (92/98)
remote: Compressing objects: 94% (93/98)
remote: Compressing objects: 95% (94/98)
remote: Compressing objects: 96% (95/98)
remote: Compressing objects: 97% (96/98)
remote: Compressing objects: 98% (97/98)
remote: Compressing objects: 100% (98/98)
remote: Compressing objects: 100% (98/98), done.
Receiving objects: 0% (1/136)
Receiving objects: 1% (2/136)
Receiving objects: 2% (3/136)
Receiving objects: 3% (5/136)
Receiving objects: 4% (6/136)
Receiving objects: 5% (7/136)
Receiving objects: 6% (9/136)
Receiving objects: 7% (10/136)
Receiving objects: 8% (11/136)
Receiving objects: 9% (13/136)
Receiving objects: 10% (14/136)
Receiving objects: 11% (15/136)
Receiving objects: 12% (17/136)
Receiving objects: 13% (18/136)
Receiving objects: 14% (20/136)
Receiving objects: 15% (21/136)
Receiving objects: 16% (22/136)
Receiving objects: 17% (24/136)
Receiving objects: 18% (25/136)
Receiving objects: 19% (26/136)
Receiving objects: 20% (28/136)
Receiving objects: 21% (29/136)
Receiving objects: 22% (30/136)
Receiving objects: 23% (32/136)
Receiving objects: 24% (33/136)
Receiving objects: 25% (34/136)
Receiving objects: 26% (36/136)
Receiving objects: 27% (37/136)
Receiving objects: 28% (39/136)
Receiving objects: 29% (40/136)
Receiving objects: 30% (41/136)
Receiving objects: 31% (43/136)
Receiving objects: 32% (44/136)
Receiving objects: 33% (45/136)
Receiving objects: 34% (47/136)
Receiving objects: 35% (48/136)
Receiving objects: 36% (49/136)
Receiving objects: 37% (51/136)
Receiving objects: 38% (52/136)
Receiving objects: 39% (54/136)
Receiving objects: 40% (55/136)
Receiving objects: 41% (56/136)
Receiving objects: 42% (58/136)
Receiving objects: 43% (59/136)
Receiving objects: 44% (60/136)
Receiving objects: 45% (62/136)
Receiving objects: 46% (63/136)
Receiving objects: 47% (64/136)
Receiving objects: 48% (66/136)
Receiving objects: 49% (67/136)
Receiving objects: 50% (68/136)
Receiving objects: 51% (70/136)
Receiving objects: 52% (71/136)
Receiving objects: 53% (73/136)
Receiving objects: 54% (74/136)
Receiving objects: 55% (75/136)
Receiving objects: 56% (77/136)
Receiving objects: 57% (78/136)
Receiving objects: 58% (79/136)
Receiving objects: 59% (81/136)
Receiving objects: 60% (82/136)
Receiving objects: 61% (83/136)
Receiving objects: 62% (85/136)
Receiving objects: 63% (86/136)
Receiving objects: 64% (88/136)
Receiving objects: 65% (89/136)
Receiving objects: 66% (90/136)
Receiving objects: 67% (92/136)
Receiving objects: 68% (93/136)
Receiving objects: 69% (94/136)
Receiving objects: 70% (96/136)
Receiving objects: 71% (97/136)
Receiving objects: 72% (98/136)
Receiving objects: 73% (100/136)
Receiving objects: 74% (101/136)
Receiving objects: 75% (102/136)
Receiving objects: 76% (104/136)
Receiving objects: 77% (105/136)
Receiving objects: 78% (107/136)
Receiving objects: 79% (108/136)
Receiving objects: 80% (109/136)
Receiving objects: 81% (111/136)
Receiving objects: 82% (112/136)
Receiving objects: 83% (113/136)
Receiving objects: 84% (115/136)
Receiving objects: 85% (116/136)
Receiving objects: 86% (117/136)
Receiving objects: 87% (119/136)
Receiving objects: 88% (120/136)
Receiving objects: 89% (122/136)
Receiving objects: 90% (123/136)
Receiving objects: 91% (124/136)
Receiving objects: 92% (126/136)
Receiving objects: 93% (127/136)
Receiving objects: 94% (128/136)
Receiving objects: 95% (130/136)
Receiving objects: 96% (131/136)
Receiving objects: 97% (132/136)
remote: Total 136 (delta 74), reused 70 (delta 35), pack-reused 3
Receiving objects: 98% (134/136)
Receiving objects: 99% (135/136)
Receiving objects: 100% (136/136)
Receiving objects: 100% (136/136), 489.12 KiB | 2.57 MiB/s, done.
Resolving deltas: 0% (0/74)
Resolving deltas: 1% (1/74)
Resolving deltas: 2% (2/74)
Resolving deltas: 4% (3/74)
Resolving deltas: 5% (4/74)
Resolving deltas: 6% (5/74)
Resolving deltas: 8% (6/74)
Resolving deltas: 9% (7/74)
Resolving deltas: 10% (8/74)
Resolving deltas: 12% (9/74)
Resolving deltas: 13% (10/74)
Resolving deltas: 14% (11/74)
Resolving deltas: 16% (12/74)
Resolving deltas: 17% (13/74)
Resolving deltas: 18% (14/74)
Resolving deltas: 20% (15/74)
Resolving deltas: 21% (16/74)
Resolving deltas: 22% (17/74)
Resolving deltas: 24% (18/74)
Resolving deltas: 25% (19/74)
Resolving deltas: 27% (20/74)
Resolving deltas: 28% (21/74)
Resolving deltas: 29% (22/74)
Resolving deltas: 31% (23/74)
Resolving deltas: 32% (24/74)
Resolving deltas: 33% (25/74)
Resolving deltas: 35% (26/74)
Resolving deltas: 36% (27/74)
Resolving deltas: 37% (28/74)
Resolving deltas: 39% (29/74)
Resolving deltas: 40% (30/74)
Resolving deltas: 41% (31/74)
Resolving deltas: 43% (32/74)
Resolving deltas: 44% (33/74)
Resolving deltas: 45% (34/74)
Resolving deltas: 47% (35/74)
Resolving deltas: 48% (36/74)
Resolving deltas: 50% (37/74)
Resolving deltas: 51% (38/74)
Resolving deltas: 54% (40/74)
Resolving deltas: 55% (41/74)
Resolving deltas: 56% (42/74)
Resolving deltas: 58% (43/74)
Resolving deltas: 59% (44/74)
Resolving deltas: 60% (45/74)
Resolving deltas: 62% (46/74)
Resolving deltas: 63% (47/74)
Resolving deltas: 64% (48/74)
Resolving deltas: 66% (49/74)
Resolving deltas: 67% (50/74)
Resolving deltas: 68% (51/74)
Resolving deltas: 71% (53/74)
Resolving deltas: 72% (54/74)
Resolving deltas: 74% (55/74)
Resolving deltas: 75% (56/74)
Resolving deltas: 77% (57/74)
Resolving deltas: 78% (58/74)
Resolving deltas: 81% (60/74)
Resolving deltas: 82% (61/74)
Resolving deltas: 83% (62/74)
Resolving deltas: 85% (63/74)
Resolving deltas: 86% (64/74)
Resolving deltas: 87% (65/74)
Resolving deltas: 89% (66/74)
Resolving deltas: 90% (67/74)
Resolving deltas: 91% (68/74)
Resolving deltas: 93% (69/74)
Resolving deltas: 94% (70/74)
Resolving deltas: 95% (71/74)
Resolving deltas: 97% (72/74)
Resolving deltas: 98% (73/74)
Resolving deltas: 100% (74/74)
Resolving deltas: 100% (74/74), completed with 12 local objects.
>From https://github.com/python/cpython
* branch 3.12 -> FETCH_HEAD
Note: switching to 'FETCH_HEAD'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at d4a146d567 [3.12] GH-89727: Fix FD leak on `os.fwalk()`
generator finalization. (GH-119766) (#119768)
Switched to and reset branch '3.12'
ar: unable to copy file 'libpython3.12d.a'; reason: No space left on device
make: *** [Makefile:971: libpython3.12d.a] Error 1
Test report
===========
Sincerely,
-The BuildbotThe Buildbot has detected a new failure on builder AMD64 Fedora
Rawhide NoGIL refleaks 3.12 while building Python.
Full details are available at:
https://buildbot.python.org/all/#/builders/1532/builds/6
Buildbot URL: https://buildbot.python.org/all/
Worker for this Build: cstratak-fedora-rawhide-x86_64
Build Reason: <unknown>
Blamelist:
BUILD FAILED: failed compile (failure)
Summary of the results of the build (if available):
===================================================
Captured traceback
==================
remote: Enumerating objects: 136, done.
remote: Counting objects: 0% (1/133)
remote: Counting objects: 1% (2/133)
remote: Counting objects: 2% (3/133)
remote: Counting objects: 3% (4/133)
remote: Counting objects: 4% (6/133)
remote: Counting objects: 5% (7/133)
remote: Counting objects: 6% (8/133)
remote: Counting objects: 7% (10/133)
remote: Counting objects: 8% (11/133)
remote: Counting objects: 9% (12/133)
remote: Counting objects: 10% (14/133)
remote: Counting objects: 11% (15/133)
remote: Counting objects: 12% (16/133)
remote: Counting objects: 13% (18/133)
remote: Counting objects: 14% (19/133)
remote: Counting objects: 15% (20/133)
remote: Counting objects: 16% (22/133)
remote: Counting objects: 17% (23/133)
remote: Counting objects: 18% (24/133)
remote: Counting objects: 19% (26/133)
remote: Counting objects: 20% (27/133)
remote: Counting objects: 21% (28/133)
remote: Counting objects: 22% (30/133)
remote: Counting objects: 23% (31/133)
remote: Counting objects: 24% (32/133)
remote: Counting objects: 25% (34/133)
remote: Counting objects: 26% (35/133)
remote: Counting objects: 27% (36/133)
remote: Counting objects: 28% (38/133)
remote: Counting objects: 29% (39/133)
remote: Counting objects: 30% (40/133)
remote: Counting objects: 31% (42/133)
remote: Counting objects: 32% (43/133)
remote: Counting objects: 33% (44/133)
remote: Counting objects: 34% (46/133)
remote: Counting objects: 35% (47/133)
remote: Counting objects: 36% (48/133)
remote: Counting objects: 37% (50/133)
remote: Counting objects: 38% (51/133)
remote: Counting objects: 39% (52/133)
remote: Counting objects: 40% (54/133)
remote: Counting objects: 41% (55/133)
remote: Counting objects: 42% (56/133)
remote: Counting objects: 43% (58/133)
remote: Counting objects: 44% (59/133)
remote: Counting objects: 45% (60/133)
remote: Counting objects: 46% (62/133)
remote: Counting objects: 47% (63/133)
remote: Counting objects: 48% (64/133)
remote: Counting objects: 49% (66/133)
remote: Counting objects: 50% (67/133)
remote: Counting objects: 51% (68/133)
remote: Counting objects: 52% (70/133)
remote: Counting objects: 53% (71/133)
remote: Counting objects: 54% (72/133)
remote: Counting objects: 55% (74/133)
remote: Counting objects: 56% (75/133)
remote: Counting objects: 57% (76/133)
remote: Counting objects: 58% (78/133)
remote: Counting objects: 59% (79/133)
remote: Counting objects: 60% (80/133)
remote: Counting objects: 61% (82/133)
remote: Counting objects: 62% (83/133)
remote: Counting objects: 63% (84/133)
remote: Counting objects: 64% (86/133)
remote: Counting objects: 65% (87/133)
remote: Counting objects: 66% (88/133)
remote: Counting objects: 67% (90/133)
remote: Counting objects: 68% (91/133)
remote: Counting objects: 69% (92/133)
remote: Counting objects: 70% (94/133)
remote: Counting objects: 71% (95/133)
remote: Counting objects: 72% (96/133)
remote: Counting objects: 73% (98/133)
remote: Counting objects: 74% (99/133)
remote: Counting objects: 75% (100/133)
remote: Counting objects: 76% (102/133)
remote: Counting objects: 77% (103/133)
remote: Counting objects: 78% (104/133)
remote: Counting objects: 79% (106/133)
remote: Counting objects: 80% (107/133)
remote: Counting objects: 81% (108/133)
remote: Counting objects: 82% (110/133)
remote: Counting objects: 83% (111/133)
remote: Counting objects: 84% (112/133)
remote: Counting objects: 85% (114/133)
remote: Counting objects: 86% (115/133)
remote: Counting objects: 87% (116/133)
remote: Counting objects: 88% (118/133)
remote: Counting objects: 89% (119/133)
remote: Counting objects: 90% (120/133)
remote: Counting objects: 91% (122/133)
remote: Counting objects: 92% (123/133)
remote: Counting objects: 93% (124/133)
remote: Counting objects: 94% (126/133)
remote: Counting objects: 95% (127/133)
remote: Counting objects: 96% (128/133)
remote: Counting objects: 97% (130/133)
remote: Counting objects: 98% (131/133)
remote: Counting objects: 99% (132/133)
remote: Counting objects: 100% (133/133)
remote: Counting objects: 100% (133/133), done.
remote: Compressing objects: 1% (1/98)
remote: Compressing objects: 2% (2/98)
remote: Compressing objects: 3% (3/98)
remote: Compressing objects: 4% (4/98)
remote: Compressing objects: 5% (5/98)
remote: Compressing objects: 6% (6/98)
remote: Compressing objects: 7% (7/98)
remote: Compressing objects: 8% (8/98)
remote: Compressing objects: 9% (9/98)
remote: Compressing objects: 10% (10/98)
remote: Compressing objects: 11% (11/98)
remote: Compressing objects: 12% (12/98)
remote: Compressing objects: 13% (13/98)
remote: Compressing objects: 14% (14/98)
remote: Compressing objects: 15% (15/98)
remote: Compressing objects: 16% (16/98)
remote: Compressing objects: 17% (17/98)
remote: Compressing objects: 18% (18/98)
remote: Compressing objects: 19% (19/98)
remote: Compressing objects: 20% (20/98)
remote: Compressing objects: 21% (21/98)
remote: Compressing objects: 22% (22/98)
remote: Compressing objects: 23% (23/98)
remote: Compressing objects: 24% (24/98)
remote: Compressing objects: 25% (25/98)
remote: Compressing objects: 26% (26/98)
remote: Compressing objects: 27% (27/98)
remote: Compressing objects: 28% (28/98)
remote: Compressing objects: 29% (29/98)
remote: Compressing objects: 30% (30/98)
remote: Compressing objects: 31% (31/98)
remote: Compressing objects: 32% (32/98)
remote: Compressing objects: 33% (33/98)
remote: Compressing objects: 34% (34/98)
remote: Compressing objects: 35% (35/98)
remote: Compressing objects: 36% (36/98)
remote: Compressing objects: 37% (37/98)
remote: Compressing objects: 38% (38/98)
remote: Compressing objects: 39% (39/98)
remote: Compressing objects: 40% (40/98)
remote: Compressing objects: 41% (41/98)
remote: Compressing objects: 42% (42/98)
remote: Compressing objects: 43% (43/98)
remote: Compressing objects: 44% (44/98)
remote: Compressing objects: 45% (45/98)
remote: Compressing objects: 46% (46/98)
remote: Compressing objects: 47% (47/98)
remote: Compressing objects: 48% (48/98)
remote: Compressing objects: 50% (49/98)
remote: Compressing objects: 51% (50/98)
remote: Compressing objects: 52% (51/98)
remote: Compressing objects: 53% (52/98)
remote: Compressing objects: 54% (53/98)
remote: Compressing objects: 55% (54/98)
remote: Compressing objects: 56% (55/98)
remote: Compressing objects: 57% (56/98)
remote: Compressing objects: 58% (57/98)
remote: Compressing objects: 59% (58/98)
remote: Compressing objects: 60% (59/98)
remote: Compressing objects: 61% (60/98)
remote: Compressing objects: 62% (61/98)
remote: Compressing objects: 63% (62/98)
remote: Compressing objects: 64% (63/98)
remote: Compressing objects: 65% (64/98)
remote: Compressing objects: 66% (65/98)
remote: Compressing objects: 67% (66/98)
remote: Compressing objects: 68% (67/98)
remote: Compressing objects: 69% (68/98)
remote: Compressing objects: 70% (69/98)
remote: Compressing objects: 71% (70/98)
remote: Compressing objects: 72% (71/98)
remote: Compressing objects: 73% (72/98)
remote: Compressing objects: 74% (73/98)
remote: Compressing objects: 75% (74/98)
remote: Compressing objects: 76% (75/98)
remote: Compressing objects: 77% (76/98)
remote: Compressing objects: 78% (77/98)
remote: Compressing objects: 79% (78/98)
remote: Compressing objects: 80% (79/98)
remote: Compressing objects: 81% (80/98)
remote: Compressing objects: 82% (81/98)
remote: Compressing objects: 83% (82/98)
remote: Compressing objects: 84% (83/98)
remote: Compressing objects: 85% (84/98)
remote: Compressing objects: 86% (85/98)
remote: Compressing objects: 87% (86/98)
remote: Compressing objects: 88% (87/98)
remote: Compressing objects: 89% (88/98)
remote: Compressing objects: 90% (89/98)
remote: Compressing objects: 91% (90/98)
remote: Compressing objects: 92% (91/98)
remote: Compressing objects: 93% (92/98)
remote: Compressing objects: 94% (93/98)
remote: Compressing objects: 95% (94/98)
remote: Compressing objects: 96% (95/98)
remote: Compressing objects: 97% (96/98)
remote: Compressing objects: 98% (97/98)
remote: Compressing objects: 100% (98/98)
remote: Compressing objects: 100% (98/98), done.
Receiving objects: 0% (1/136)
Receiving objects: 1% (2/136)
Receiving objects: 2% (3/136)
Receiving objects: 3% (5/136)
Receiving objects: 4% (6/136)
Receiving objects: 5% (7/136)
Receiving objects: 6% (9/136)
Receiving objects: 7% (10/136)
Receiving objects: 8% (11/136)
Receiving objects: 9% (13/136)
Receiving objects: 10% (14/136)
Receiving objects: 11% (15/136)
Receiving objects: 12% (17/136)
Receiving objects: 13% (18/136)
Receiving objects: 14% (20/136)
Receiving objects: 15% (21/136)
Receiving objects: 16% (22/136)
Receiving objects: 17% (24/136)
Receiving objects: 18% (25/136)
Receiving objects: 19% (26/136)
Receiving objects: 20% (28/136)
Receiving objects: 21% (29/136)
Receiving objects: 22% (30/136)
Receiving objects: 23% (32/136)
Receiving objects: 24% (33/136)
Receiving objects: 25% (34/136)
Receiving objects: 26% (36/136)
Receiving objects: 27% (37/136)
Receiving objects: 28% (39/136)
Receiving objects: 29% (40/136)
Receiving objects: 30% (41/136)
Receiving objects: 31% (43/136)
Receiving objects: 32% (44/136)
Receiving objects: 33% (45/136)
Receiving objects: 34% (47/136)
Receiving objects: 35% (48/136)
Receiving objects: 36% (49/136)
Receiving objects: 37% (51/136)
Receiving objects: 38% (52/136)
Receiving objects: 39% (54/136)
Receiving objects: 40% (55/136)
Receiving objects: 41% (56/136)
Receiving objects: 42% (58/136)
Receiving objects: 43% (59/136)
Receiving objects: 44% (60/136)
Receiving objects: 45% (62/136)
Receiving objects: 46% (63/136)
Receiving objects: 47% (64/136)
Receiving objects: 48% (66/136)
Receiving objects: 49% (67/136)
Receiving objects: 50% (68/136)
Receiving objects: 51% (70/136)
Receiving objects: 52% (71/136)
Receiving objects: 53% (73/136)
Receiving objects: 54% (74/136)
Receiving objects: 55% (75/136)
Receiving objects: 56% (77/136)
Receiving objects: 57% (78/136)
Receiving objects: 58% (79/136)
Receiving objects: 59% (81/136)
Receiving objects: 60% (82/136)
Receiving objects: 61% (83/136)
Receiving objects: 62% (85/136)
Receiving objects: 63% (86/136)
Receiving objects: 64% (88/136)
Receiving objects: 65% (89/136)
Receiving objects: 66% (90/136)
Receiving objects: 67% (92/136)
Receiving objects: 68% (93/136)
Receiving objects: 69% (94/136)
Receiving objects: 70% (96/136)
Receiving objects: 71% (97/136)
Receiving objects: 72% (98/136)
Receiving objects: 73% (100/136)
Receiving objects: 74% (101/136)
Receiving objects: 75% (102/136)
Receiving objects: 76% (104/136)
Receiving objects: 77% (105/136)
Receiving objects: 78% (107/136)
Receiving objects: 79% (108/136)
Receiving objects: 80% (109/136)
Receiving objects: 81% (111/136)
Receiving objects: 82% (112/136)
Receiving objects: 83% (113/136)
Receiving objects: 84% (115/136)
Receiving objects: 85% (116/136)
Receiving objects: 86% (117/136)
Receiving objects: 87% (119/136)
Receiving objects: 88% (120/136)
Receiving objects: 89% (122/136)
Receiving objects: 90% (123/136)
Receiving objects: 91% (124/136)
Receiving objects: 92% (126/136)
Receiving objects: 93% (127/136)
Receiving objects: 94% (128/136)
remote: Total 136 (delta 72), reused 72 (delta 35), pack-reused 3
Receiving objects: 95% (130/136)
Receiving objects: 96% (131/136)
Receiving objects: 97% (132/136)
Receiving objects: 98% (134/136)
Receiving objects: 99% (135/136)
Receiving objects: 100% (136/136)
Receiving objects: 100% (136/136), 498.58 KiB | 4.62 MiB/s, done.
Resolving deltas: 0% (0/72)
Resolving deltas: 1% (1/72)
Resolving deltas: 2% (2/72)
Resolving deltas: 5% (4/72)
Resolving deltas: 6% (5/72)
Resolving deltas: 8% (6/72)
Resolving deltas: 9% (7/72)
Resolving deltas: 11% (8/72)
Resolving deltas: 12% (9/72)
Resolving deltas: 13% (10/72)
Resolving deltas: 15% (11/72)
Resolving deltas: 16% (12/72)
Resolving deltas: 18% (13/72)
Resolving deltas: 19% (14/72)
Resolving deltas: 20% (15/72)
Resolving deltas: 22% (16/72)
Resolving deltas: 23% (17/72)
Resolving deltas: 25% (18/72)
Resolving deltas: 26% (19/72)
Resolving deltas: 27% (20/72)
Resolving deltas: 29% (21/72)
Resolving deltas: 30% (22/72)
Resolving deltas: 31% (23/72)
Resolving deltas: 33% (24/72)
Resolving deltas: 34% (25/72)
Resolving deltas: 36% (26/72)
Resolving deltas: 37% (27/72)
Resolving deltas: 38% (28/72)
Resolving deltas: 40% (29/72)
Resolving deltas: 41% (30/72)
Resolving deltas: 43% (31/72)
Resolving deltas: 44% (32/72)
Resolving deltas: 45% (33/72)
Resolving deltas: 47% (34/72)
Resolving deltas: 48% (35/72)
Resolving deltas: 50% (36/72)
Resolving deltas: 51% (37/72)
Resolving deltas: 52% (38/72)
Resolving deltas: 54% (39/72)
Resolving deltas: 55% (40/72)
Resolving deltas: 56% (41/72)
Resolving deltas: 58% (42/72)
Resolving deltas: 59% (43/72)
Resolving deltas: 61% (44/72)
Resolving deltas: 62% (45/72)
Resolving deltas: 63% (46/72)
Resolving deltas: 65% (47/72)
Resolving deltas: 66% (48/72)
Resolving deltas: 68% (49/72)
Resolving deltas: 69% (50/72)
Resolving deltas: 70% (51/72)
Resolving deltas: 72% (52/72)
Resolving deltas: 73% (53/72)
Resolving deltas: 75% (54/72)
Resolving deltas: 76% (55/72)
Resolving deltas: 77% (56/72)
Resolving deltas: 79% (57/72)
Resolving deltas: 81% (59/72)
Resolving deltas: 83% (60/72)
Resolving deltas: 84% (61/72)
Resolving deltas: 86% (62/72)
Resolving deltas: 87% (63/72)
Resolving deltas: 88% (64/72)
Resolving deltas: 90% (65/72)
Resolving deltas: 91% (66/72)
Resolving deltas: 93% (67/72)
Resolving deltas: 94% (68/72)
Resolving deltas: 95% (69/72)
Resolving deltas: 97% (70/72)
Resolving deltas: 98% (71/72)
Resolving deltas: 100% (72/72)
Resolving deltas: 100% (72/72), completed with 10 local objects.
>From https://github.com/python/cpython
* branch 3.12 -> FETCH_HEAD
Note: switching to 'FETCH_HEAD'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at d4a146d567 [3.12] GH-89727: Fix FD leak on `os.fwalk()`
generator finalization. (GH-119766) (#119768)
Switched to and reset branch '3.12'
configure: WARNING: unrecognized options: --disable-gil
configure: WARNING: unrecognized options: --disable-gil
ar: unable to copy file 'libpython3.12d.a'; reason: No space left on device
make: *** [Makefile:971: libpython3.12d.a] Error 1
Test report
===========
Sincerely,
-The BuildbotThe Buildbot has detected a new failure on builder PPC64LE RHEL7
Refleaks 3.12 while building Python.
Full details are available at:
https://buildbot.python.org/all/#/builders/1147/builds/372
Buildbot URL: https://buildbot.python.org/all/
Worker for this Build: cstratak-RHEL7-ppc64le
Build Reason: <unknown>
Blamelist:
BUILD FAILED: failed test (failure)
Summary of the results of the build (if available):
===================================================
==
Captured traceback
==================
Traceback (most recent call last):
ValueError: line 1 of the doctest for s has an invalid option: '+BADOPTION'
k
Trying:
s = '>>> print(12) #doctest: ELLIPSIS'
Expecting nothing
k
Trying:
test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 1 of the doctest for s has an invalid option: 'ELLIPSIS'
k
Trying:
s = '>>> # doctest: +ELLIPSIS'
Expecting nothing
k
Trying:
test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 0 of the doctest for s has an option directive on a line
with no example: '# doctest: +ELLIPSIS'
k
doctest (test_zipped_doctest) ... 33 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestRunner.optionflags
Trying:
def f(x):
'>>> True\n1\n'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.DONT_ACCEPT_TRUE_FOR_1
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
True
Expected:
1
Got:
True
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
'>>> print("a\\n\\nb")\na\n<BLANKLINE>\nb\n'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.DONT_ACCEPT_BLANKLINE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
print("a\n\nb")
Expected:
a
<BLANKLINE>
b
Got:
a
<BLANKLINE>
b
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
'>>> print(1, 2, 3)\n 1 2\n 3'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
print(1, 2, 3)
Expected:
1 2
3
Got:
1 2 3
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.NORMALIZE_WHITESPACE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE
Expecting:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
k
Trying:
def f(x):
'>>> print(list(range(15)))\n[0, 1, 2, ..., 14]\n'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
print(list(range(15)))
Expected:
[0, 1, 2, ..., 14]
Got:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.ELLIPSIS
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
if 1:
for i in range(100):
print(i**2, end=' ') #doctest: +ELLIPSIS
print('!')
Expecting:
0 1...4...9 16 ... 36 49 64 ... 9801 !
k
Trying:
if 1: #doctest: +ELLIPSIS
for i in range(20):
print(i, end=' ')
print(20)
Expecting:
0 1 2 ...1...2...0
k
Trying:
print(list(range(20))) # doctest:+ELLIPSIS
Expecting:
[0, 1, ..., 18, 19]
k
Trying:
print(list(range(20))) # doctest: +ELLIPSIS
# doctest: +NORMALIZE_WHITESPACE
Expecting:
[0, 1, ..., 18, 19]
k
Trying:
import random
Expecting nothing
k
Trying:
def f(x):
r'''
>>> print('\n'.join('abcdefg'))
a
B
c
d
f
g
h
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print('\n'.join('abcdefg'))
Expected:
a
B
c
d
f
g
h
Got:
a
b
c
d
e
f
g
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_UDIFF
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print('\n'.join('abcdefg'))
Differences (unified diff with -expected +actual):
@@ -1,7 +1,7 @@
a
-B
+b
c
d
+e
f
g
-h
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_CDIFF
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print('\n'.join('abcdefg'))
Differences (context diff with expected followed by actual):
***************
*** 1,7 ****
a
! B
c
d
f
g
- h
--- 1,7 ----
a
! b
c
d
+ e
f
g
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> print("a b c d e f g h i j k l m")
a b c d e f g h i j k 1 m
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_NDIFF
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print("a b c d e f g h i j k l m")
Differences (ndiff with -expected +actual):
- a b c d e f g h i j k 1 m
? ^
+ a b c d e f g h i j k l m
? + ++ ^
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> print(1) # first success
1
>>> print(2) # first failure
200
>>> print(3) # second failure
300
>>> print(4) # second success
4
>>> print(5) # third failure
500
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_ONLY_FIRST_FAILURE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=3, attempted=5)
k
Trying:
doctest.DocTestRunner(verbose=True, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
Trying:
print(1) # first success
Expecting:
1
ok
Trying:
print(2) # first failure
Expecting:
200
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=3, attempted=5)
k
Trying:
flags = doctest.FAIL_FAST
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=1, attempted=2)
k
Trying:
flags = doctest.FAIL_FAST | doctest.REPORT_ONLY_FIRST_FAILURE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=1, attempted=2)
k
Trying:
def f(x):
r'''
>>> print(1) # first success
1
>>> raise ValueError(2) # first failure
200
>>> print(3) # second failure
300
>>> print(4) # second success
4
>>> print(5) # third failure
500
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_ONLY_FIRST_FAILURE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
raise ValueError(2) # first failure
Exception raised:
...
ValueError: 2
TestResults(failed=3, attempted=5)
k
Trying:
flags = doctest.FAIL_FAST
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
raise ValueError(2) # first failure
Exception raised:
...
ValueError: 2
TestResults(failed=1, attempted=2)
k
Trying:
unlikely = "UNLIKELY_OPTION_NAME"
Expecting nothing
k
Trying:
unlikely in doctest.OPTIONFLAGS_BY_NAME
Expecting:
False
k
Trying:
new_flag_value = doctest.register_optionflag(unlikely)
Expecting nothing
k
Trying:
unlikely in doctest.OPTIONFLAGS_BY_NAME
Expecting:
True
k
Trying:
redundant_flag_value = doctest.register_optionflag(unlikely)
Expecting nothing
k
Trying:
redundant_flag_value == new_flag_value
Expecting:
True
k
Trying:
del doctest.OPTIONFLAGS_BY_NAME[unlikely]
Expecting nothing
k
doctest (test_zipped_doctest) ... 65 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestRunner.verbose_flag
Trying:
def f(x):
'''
>>> x = 12
>>> print(x)
12
>>> x//2
6
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=True).run(test)
Expecting:
Trying:
x = 12
Expecting nothing
ok
Trying:
print(x)
Expecting:
12
ok
Trying:
x//2
Expecting:
6
ok
TestResults(failed=0, attempted=3)
k
Trying:
old_argv = sys.argv
Expecting nothing
k
Trying:
sys.argv = ['test']
Expecting nothing
k
Trying:
doctest.DocTestRunner().run(test)
Expecting:
TestResults(failed=0, attempted=3)
k
Trying:
sys.argv = ['test', '-v']
Expecting nothing
k
Trying:
doctest.DocTestRunner().run(test)
Expecting:
Trying:
x = 12
Expecting nothing
ok
Trying:
print(x)
Expecting:
12
ok
Trying:
x//2
Expecting:
6
ok
TestResults(failed=0, attempted=3)
k
Trying:
sys.argv = old_argv
Expecting nothing
k
doctest (test_zipped_doctest) ... 9 tests with zero failures
Finding tests in test_zipped_doctest.test_Example
Trying:
example = doctest.Example('print(1)', '1\n')
Expecting nothing
k
Trying:
(example.source, example.want, example.exc_msg,
example.lineno, example.indent, example.options)
Expecting:
('print(1)\n', '1\n', None, 0, 0, {})
k
Trying:
exc_msg = 'IndexError: pop from an empty list'
Expecting nothing
k
Trying:
example = doctest.Example('[].pop()', '', exc_msg,
lineno=5, indent=4,
options={doctest.ELLIPSIS: True})
Expecting nothing
k
Trying:
(example.source, example.want, example.exc_msg,
example.lineno, example.indent, example.options)
Expecting:
('[].pop()\n', '', 'IndexError: pop from an empty list\n', 5, 4, {8: True})
k
Trying:
e = doctest.Example('print(1)', '1\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print(1)\n', '1\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print(1);\nprint(2)\n', '1\n2\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1);\nprint(2)\n', '1\n2\n')
k
Trying:
e = doctest.Example('print(1);\nprint(2)', '1\n2\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1);\nprint(2)\n', '1\n2\n')
k
Trying:
e = doctest.Example('', '')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('\n', '')
k
Trying:
e = doctest.Example('print(1)', '1\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print(1)', '1')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print', '')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print\n', '')
k
Trying:
exc_msg = 'IndexError: pop from an empty list'
Expecting nothing
k
Trying:
e = doctest.Example('[].pop()', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'IndexError: pop from an empty list\n'
k
Trying:
exc_msg = 'IndexError: pop from an empty list\n'
Expecting nothing
k
Trying:
e = doctest.Example('[].pop()', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'IndexError: pop from an empty list\n'
k
Trying:
exc_msg = 'ValueError: 1\n 2'
Expecting nothing
k
Trying:
e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'ValueError: 1\n 2\n'
k
Trying:
exc_msg = 'ValueError: 1\n 2\n'
Expecting nothing
k
Trying:
e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'ValueError: 1\n 2\n'
k
Trying:
exc_msg = ''
Expecting nothing
k
Trying:
e = doctest.Example('raise X()', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'\n'
k
Trying:
example = doctest.Example('print 1', '1\n')
Expecting nothing
k
Trying:
same_example = doctest.Example('print 1', '1\n')
Expecting nothing
k
Trying:
other_example = doctest.Example('print 42', '42\n')
Expecting nothing
k
Trying:
example == same_example
Expecting:
True
k
Trying:
example != same_example
Expecting:
False
k
Trying:
hash(example) == hash(same_example)
Expecting:
True
k
Trying:
example == other_example
Expecting:
False
k
Trying:
example != other_example
Expecting:
True
k
doctest (test_zipped_doctest) ... 44 tests with zero failures
Finding tests in test_zipped_doctest.test_debug
Trying:
s = '''
>>> x = 12
>>> print(x)
12
'''
Expecting nothing
k
Trying:
real_stdin = sys.stdin
Expecting nothing
k
Trying:
sys.stdin = FakeInput(['next', 'print(x)', 'continue'])
Expecting nothing
k
Trying:
try: doctest.debug_src(s)
finally: sys.stdin = real_stdin
Expecting:
> <string>(1)<module>()
(Pdb) next
12
--Return--
> <string>(1)<module>()->None
(Pdb) print(x)
12
(Pdb) continue
k
doctest (test_zipped_doctest) ... 4 tests with zero failures
Finding tests in test_zipped_doctest.test_testsource
Trying:
import test_zipped_doctest as test_doctest
Expecting nothing
k
Trying:
name = 'test_zipped_doctest.sample_func'
Expecting nothing
k
Trying:
print(doctest.testsource(test_doctest, name))
Expecting:
# Blah blah
#
print(sample_func(22))
# Expected:
## 44
#
# Yee ha!
<BLANKLINE>
k
Trying:
name = 'test_zipped_doctest.SampleNewStyleClass'
Expecting nothing
k
Trying:
print(doctest.testsource(test_doctest, name))
Expecting:
print('1\n2\n3')
# Expected:
## 1
## 2
## 3
<BLANKLINE>
k
Trying:
name = 'test_zipped_doctest.SampleClass.a_classmethod'
Expecting nothing
k
Trying:
print(doctest.testsource(test_doctest, name))
Expecting:
print(SampleClass.a_classmethod(10))
# Expected:
## 12
print(SampleClass(0).a_classmethod(10))
# Expected:
## 12
<BLANKLINE>
k
doctest (test_zipped_doctest) ... 7 tests with zero failures
Finding tests in test_zipped_doctest.test_trailing_space_in_test
Trying:
x, y = 'foo', ''
Expecting nothing
k
Trying:
print(x, y)
Expecting:
foo
k
doctest (test_zipped_doctest) ... 2 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestSuite
Trying:
import unittest
Expecting nothing
k
Trying:
import sample_zipped_doctest
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite(sample_zipped_doctest)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest')
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest_no_doctests')
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=0 errors=0 failures=0>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings')
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=0 errors=0 failures=0>
k
Trying:
suite = sample_zipped_doctest.test_suite()
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
finder = doctest.DocTestFinder()
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
test_finder=finder)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
finder = doctest.DocTestFinder()
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings',
test_finder=finder)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=0 errors=0 failures=0>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest', globs={})
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=5>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
extraglobs={'y': 1})
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=3>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
optionflags=doctest.DONT_ACCEPT_BLANKLINE)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=5>
k
Trying:
def setUp(t):
import test_zipped_doctest as test_doctest
test_doctest.sillySetup = True
Expecting nothing
k
Trying:
def tearDown(t):
import test_zipped_doctest as test_doctest
del test_doctest.sillySetup
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
setUp=setUp, tearDown=tearDown)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=3>
k
Trying:
import test_zipped_doctest as test_doctest
Expecting nothing
k
Trying:
test_doctest.sillySetup
Expecting:
Traceback (most recent call last):
...
AttributeError: module 'test_zipped_doctest' has no attribute 'sillySetup'
k
Trying:
def setUp(test):
test.globs['y'] = 1
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest', setUp=setUp)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=3>
k
doctest (test_zipped_doctest) ... 33 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestFinder
doctest (test_zipped_doctest) ... 0 tests with zero failures
k
Traceback (most recent call last):
ValueError: line 4 of the docstring for some_test has inconsistent leading
whitespace: 'indentation'
k
Trying:
docstring = r'''
>>> print(('bad indentation',
... 2))
('bad', 'indentation')
'''
Expecting nothing
k
Trying:
parser.get_doctest(docstring, globs, 'some_test', 'filename', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 2 of the docstring for some_test has inconsistent leading
whitespace: '... 2))'
k
Trying:
docstring = '>>>print(1)\n1'
Expecting nothing
k
Trying:
parser.get_doctest(docstring, globs, 'some_test', 'filename', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 1 of the docstring for some_test lacks blank after >>>:
'>>>print(1)'
k
Trying:
docstring = '>>> if 1:\n...print(1)\n1'
Expecting nothing
k
Trying:
parser.get_doctest(docstring, globs, 'some_test', 'filename', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 2 of the docstring for some_test lacks blank after ...:
'...print(1)'
k
Trying:
docstring = '''
>>> print 12
12
'''
Expecting nothing
k
Trying:
test = parser.get_doctest(docstring, globs, 'some_test',
'some_test', 20)
Expecting nothing
k
Trying:
same_test = parser.get_doctest(docstring, globs, 'some_test',
'some_test', 20)
Expecting nothing
k
Trying:
test == same_test
Expecting:
True
k
Trying:
test != same_test
Expecting:
False
k
Trying:
hash(test) == hash(same_test)
Expecting:
True
k
Trying:
docstring = '''
>>> print 42
42
'''
Expecting nothing
k
Trying:
other_test = parser.get_doctest(docstring, globs, 'other_test',
'other_file', 10)
Expecting nothing
k
Trying:
test == other_test
Expecting:
False
k
Trying:
test != other_test
Expecting:
True
k
Trying:
test < other_test
Expecting:
False
k
Trying:
other_test < test
Expecting:
True
k
Trying:
no_lineno = parser.get_doctest(docstring, globs, 'some_test',
'some_test', None)
Expecting nothing
k
Trying:
test.lineno is None
Expecting:
False
k
Trying:
no_lineno.lineno is None
Expecting:
True
k
Trying:
test < no_lineno
Expecting:
False
k
Trying:
no_lineno < test
Expecting:
True
k
Trying:
DocTestCase = doctest.DocTestCase
Expecting nothing
k
Trying:
test_case = DocTestCase(test)
Expecting nothing
k
Trying:
same_test_case = DocTestCase(same_test)
Expecting nothing
k
Trying:
other_test_case = DocTestCase(other_test)
Expecting nothing
k
Trying:
test_case == same_test_case
Expecting:
True
k
Trying:
test_case != same_test_case
Expecting:
False
k
Trying:
hash(test_case) == hash(same_test_case)
Expecting:
True
k
Trying:
test == other_test_case
Expecting:
False
k
Trying:
test != other_test_case
Expecting:
True
k
doctest (test_zipped_doctest) ... 46 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestParser
Trying:
s = '''
>>> x, y = 2, 3 # no output expected
>>> if 1:
... print(x)
... print(y)
2
3
Traceback (most recent call last):
ZeroDivisionError: integer division or modulo by zero
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
'''
>>> x = 12
>>> print('pre-exception output', x//0)
pre-exception output
Traceback (most recent call last):
ZeroDivisionError: integer division or modulo by zero
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 4, in f
Failed example:
print('pre-exception output', x//0)
Exception raised:
...
ZeroDivisionError: integer division or modulo by zero
TestResults(failed=1, attempted=2)
k
Trying:
def f(x):
r'''
>>> raise ValueError('multi\nline\nmessage')
Traceback (most recent call last):
ValueError: multi
line
message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
def f(x):
r'''
>>> raise ValueError('message')
Traceback (most recent call last):
ValueError: wrong message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
raise ValueError('message')
Expected:
Traceback (most recent call last):
ValueError: wrong message
Got:
Traceback (most recent call last):
...
ValueError: message
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
ValueError: wrong message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message')
Traceback (most recent call last):
HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 4, in f
Failed example:
raise HTTPException('message')
Expected:
Traceback (most recent call last):
HTTPException: message
Got:
Traceback (most recent call last):
...
http.client.HTTPException: message
TestResults(failed=1, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message')
Traceback (most recent call last):
http.client.HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
foo.bar.HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
TypeError: wrong type
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Expected:
Traceback (most recent call last):
TypeError: wrong type
Got:
Traceback (most recent call last):
...
ValueError: message
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
foo.bar.HTTPException
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
foo.bar.HTTPException:
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> 1//0
0
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
1//0
Exception raised:
Traceback (most recent call last):
...
ZeroDivisionError: integer division or modulo by zero
TestResults(failed=1, attempted=1)
k
doctest (test_zipped_doctest) ... 39 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestRunner.option_directives
Trying:
def f(x): r'''
>>> print(list(range(10))) # should fail: no ellipsis
[0, 1, ..., 9]
Test report
===========
Failed tests:
- test_peg_generator
- test_cgitb
- test_tokenize
- test.test_pydoc.test_pydoc
- test_tabnanny
- test.test_asyncio.test_subprocess
- test.test_asyncio.test_futures
- test_dataclasses
- test_unittest
- test_curses
- test_rlcompleter
- test_functools
- test_zipimport_support
- test_enum
- test.test_asyncio.test_unix_events
- test_trace
- test_types
- test_getpass
- test_pdb
- test_zoneinfo
- test.test_inspect.test_inspect
- test_decimal
Test leaking resources:
- test_subprocess: references
- test_unix_events: references
- test_curses: memory blocks
- test_inspect: memory blocks
- test_getpass: memory blocks
- test_zoneinfo: memory blocks
- test_dataclasses: memory blocks
- test_subprocess: memory blocks
- test_unix_events: memory blocks
- test_dataclasses: references
- test_decimal: references
- test_futures: references
- test_functools: references
- test_tokenize: references
- test_functools: memory blocks
- test_futures: memory blocks
- test_decimal: memory blocks
- test_tokenize: memory blocks
- test_types: references
- test_rlcompleter: references
- test_types: memory blocks
- test_rlcompleter: memory blocks
- test_peg_generator: references
- test_enum: references
- test_peg_generator: memory blocks
- test_tabnanny: references
- test_enum: memory blocks
- test_pydoc: references
- test_pdb: references
- test_trace: references
- test_unittest: references
- test_zipimport_support: references
- test_trace: memory blocks
- test_tabnanny: memory blocks
- test_pdb: memory blocks
- test_pydoc: memory blocks
- test_curses: references
- test_inspect: references
- test_cgitb: references
- test_zoneinfo: references
- test_zipimport_support: memory blocks
- test_getpass: references
- test_unittest: memory blocks
- test_cgitb: memory blocks
Sincerely,
-The BuildbotThe Buildbot has detected a new failure on builder s390x RHEL8
Refleaks 3.12 while building Python.
Full details are available at:
https://buildbot.python.org/all/#/builders/1187/builds/369
Buildbot URL: https://buildbot.python.org/all/
Worker for this Build: edelsohn-rhel8-z
Build Reason: <unknown>
Blamelist:
BUILD FAILED: failed test (failure)
Summary of the results of the build (if available):
===================================================
==
Captured traceback
==================
Traceback (most recent call last):
ValueError: line 1 of the doctest for s has an invalid option: '+BADOPTION'
k
Trying:
s = '>>> print(12) #doctest: ELLIPSIS'
Expecting nothing
k
Trying:
test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 1 of the doctest for s has an invalid option: 'ELLIPSIS'
k
Trying:
s = '>>> # doctest: +ELLIPSIS'
Expecting nothing
k
Trying:
test = doctest.DocTestParser().get_doctest(s, {}, 's', 's.py', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 0 of the doctest for s has an option directive on a line
with no example: '# doctest: +ELLIPSIS'
k
doctest (test_zipped_doctest) ... 33 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestRunner.optionflags
Trying:
def f(x):
'>>> True\n1\n'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.DONT_ACCEPT_TRUE_FOR_1
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
True
Expected:
1
Got:
True
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
'>>> print("a\\n\\nb")\na\n<BLANKLINE>\nb\n'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.DONT_ACCEPT_BLANKLINE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
print("a\n\nb")
Expected:
a
<BLANKLINE>
b
Got:
a
<BLANKLINE>
b
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
'>>> print(1, 2, 3)\n 1 2\n 3'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
print(1, 2, 3)
Expected:
1 2
3
Got:
1 2 3
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.NORMALIZE_WHITESPACE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE
Expecting:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
k
Trying:
def f(x):
'>>> print(list(range(15)))\n[0, 1, 2, ..., 14]\n'
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 2, in f
Failed example:
print(list(range(15)))
Expected:
[0, 1, 2, ..., 14]
Got:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.ELLIPSIS
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
if 1:
for i in range(100):
print(i**2, end=' ') #doctest: +ELLIPSIS
print('!')
Expecting:
0 1...4...9 16 ... 36 49 64 ... 9801 !
k
Trying:
if 1: #doctest: +ELLIPSIS
for i in range(20):
print(i, end=' ')
print(20)
Expecting:
0 1 2 ...1...2...0
k
Trying:
print(list(range(20))) # doctest:+ELLIPSIS
Expecting:
[0, 1, ..., 18, 19]
k
Trying:
print(list(range(20))) # doctest: +ELLIPSIS
# doctest: +NORMALIZE_WHITESPACE
Expecting:
[0, 1, ..., 18, 19]
k
Trying:
import random
Expecting nothing
k
Trying:
def f(x):
r'''
>>> print('\n'.join('abcdefg'))
a
B
c
d
f
g
h
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print('\n'.join('abcdefg'))
Expected:
a
B
c
d
f
g
h
Got:
a
b
c
d
e
f
g
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_UDIFF
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print('\n'.join('abcdefg'))
Differences (unified diff with -expected +actual):
@@ -1,7 +1,7 @@
a
-B
+b
c
d
+e
f
g
-h
TestResults(failed=1, attempted=1)
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_CDIFF
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print('\n'.join('abcdefg'))
Differences (context diff with expected followed by actual):
***************
*** 1,7 ****
a
! B
c
d
f
g
- h
--- 1,7 ----
a
! b
c
d
+ e
f
g
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> print("a b c d e f g h i j k l m")
a b c d e f g h i j k 1 m
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_NDIFF
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
print("a b c d e f g h i j k l m")
Differences (ndiff with -expected +actual):
- a b c d e f g h i j k 1 m
? ^
+ a b c d e f g h i j k l m
? + ++ ^
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> print(1) # first success
1
>>> print(2) # first failure
200
>>> print(3) # second failure
300
>>> print(4) # second success
4
>>> print(5) # third failure
500
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_ONLY_FIRST_FAILURE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=3, attempted=5)
k
Trying:
doctest.DocTestRunner(verbose=True, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
Trying:
print(1) # first success
Expecting:
1
ok
Trying:
print(2) # first failure
Expecting:
200
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=3, attempted=5)
k
Trying:
flags = doctest.FAIL_FAST
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=1, attempted=2)
k
Trying:
flags = doctest.FAIL_FAST | doctest.REPORT_ONLY_FIRST_FAILURE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
print(2) # first failure
Expected:
200
Got:
2
TestResults(failed=1, attempted=2)
k
Trying:
def f(x):
r'''
>>> print(1) # first success
1
>>> raise ValueError(2) # first failure
200
>>> print(3) # second failure
300
>>> print(4) # second success
4
>>> print(5) # third failure
500
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
flags = doctest.REPORT_ONLY_FIRST_FAILURE
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
raise ValueError(2) # first failure
Exception raised:
...
ValueError: 2
TestResults(failed=3, attempted=5)
k
Trying:
flags = doctest.FAIL_FAST
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False, optionflags=flags).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 5, in f
Failed example:
raise ValueError(2) # first failure
Exception raised:
...
ValueError: 2
TestResults(failed=1, attempted=2)
k
Trying:
unlikely = "UNLIKELY_OPTION_NAME"
Expecting nothing
k
Trying:
unlikely in doctest.OPTIONFLAGS_BY_NAME
Expecting:
False
k
Trying:
new_flag_value = doctest.register_optionflag(unlikely)
Expecting nothing
k
Trying:
unlikely in doctest.OPTIONFLAGS_BY_NAME
Expecting:
True
k
Trying:
redundant_flag_value = doctest.register_optionflag(unlikely)
Expecting nothing
k
Trying:
redundant_flag_value == new_flag_value
Expecting:
True
k
Trying:
del doctest.OPTIONFLAGS_BY_NAME[unlikely]
Expecting nothing
k
doctest (test_zipped_doctest) ... 65 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestRunner.verbose_flag
Trying:
def f(x):
'''
>>> x = 12
>>> print(x)
12
>>> x//2
6
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=True).run(test)
Expecting:
Trying:
x = 12
Expecting nothing
ok
Trying:
print(x)
Expecting:
12
ok
Trying:
x//2
Expecting:
6
ok
TestResults(failed=0, attempted=3)
k
Trying:
old_argv = sys.argv
Expecting nothing
k
Trying:
sys.argv = ['test']
Expecting nothing
k
Trying:
doctest.DocTestRunner().run(test)
Expecting:
TestResults(failed=0, attempted=3)
k
Trying:
sys.argv = ['test', '-v']
Expecting nothing
k
Trying:
doctest.DocTestRunner().run(test)
Expecting:
Trying:
x = 12
Expecting nothing
ok
Trying:
print(x)
Expecting:
12
ok
Trying:
x//2
Expecting:
6
ok
TestResults(failed=0, attempted=3)
k
Trying:
sys.argv = old_argv
Expecting nothing
k
doctest (test_zipped_doctest) ... 9 tests with zero failures
Finding tests in test_zipped_doctest.test_Example
Trying:
example = doctest.Example('print(1)', '1\n')
Expecting nothing
k
Trying:
(example.source, example.want, example.exc_msg,
example.lineno, example.indent, example.options)
Expecting:
('print(1)\n', '1\n', None, 0, 0, {})
k
Trying:
exc_msg = 'IndexError: pop from an empty list'
Expecting nothing
k
Trying:
example = doctest.Example('[].pop()', '', exc_msg,
lineno=5, indent=4,
options={doctest.ELLIPSIS: True})
Expecting nothing
k
Trying:
(example.source, example.want, example.exc_msg,
example.lineno, example.indent, example.options)
Expecting:
('[].pop()\n', '', 'IndexError: pop from an empty list\n', 5, 4, {8: True})
k
Trying:
e = doctest.Example('print(1)', '1\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print(1)\n', '1\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print(1);\nprint(2)\n', '1\n2\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1);\nprint(2)\n', '1\n2\n')
k
Trying:
e = doctest.Example('print(1);\nprint(2)', '1\n2\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1);\nprint(2)\n', '1\n2\n')
k
Trying:
e = doctest.Example('', '')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('\n', '')
k
Trying:
e = doctest.Example('print(1)', '1\n')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print(1)', '1')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print(1)\n', '1\n')
k
Trying:
e = doctest.Example('print', '')
Expecting nothing
k
Trying:
e.source, e.want
Expecting:
('print\n', '')
k
Trying:
exc_msg = 'IndexError: pop from an empty list'
Expecting nothing
k
Trying:
e = doctest.Example('[].pop()', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'IndexError: pop from an empty list\n'
k
Trying:
exc_msg = 'IndexError: pop from an empty list\n'
Expecting nothing
k
Trying:
e = doctest.Example('[].pop()', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'IndexError: pop from an empty list\n'
k
Trying:
exc_msg = 'ValueError: 1\n 2'
Expecting nothing
k
Trying:
e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'ValueError: 1\n 2\n'
k
Trying:
exc_msg = 'ValueError: 1\n 2\n'
Expecting nothing
k
Trying:
e = doctest.Example('raise ValueError("1\n 2")', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'ValueError: 1\n 2\n'
k
Trying:
exc_msg = ''
Expecting nothing
k
Trying:
e = doctest.Example('raise X()', '', exc_msg)
Expecting nothing
k
Trying:
e.exc_msg
Expecting:
'\n'
k
Trying:
example = doctest.Example('print 1', '1\n')
Expecting nothing
k
Trying:
same_example = doctest.Example('print 1', '1\n')
Expecting nothing
k
Trying:
other_example = doctest.Example('print 42', '42\n')
Expecting nothing
k
Trying:
example == same_example
Expecting:
True
k
Trying:
example != same_example
Expecting:
False
k
Trying:
hash(example) == hash(same_example)
Expecting:
True
k
Trying:
example == other_example
Expecting:
False
k
Trying:
example != other_example
Expecting:
True
k
doctest (test_zipped_doctest) ... 44 tests with zero failures
Finding tests in test_zipped_doctest.test_debug
Trying:
s = '''
>>> x = 12
>>> print(x)
12
'''
Expecting nothing
k
Trying:
real_stdin = sys.stdin
Expecting nothing
k
Trying:
sys.stdin = FakeInput(['next', 'print(x)', 'continue'])
Expecting nothing
k
Trying:
try: doctest.debug_src(s)
finally: sys.stdin = real_stdin
Expecting:
> <string>(1)<module>()
(Pdb) next
12
--Return--
> <string>(1)<module>()->None
(Pdb) print(x)
12
(Pdb) continue
k
doctest (test_zipped_doctest) ... 4 tests with zero failures
Finding tests in test_zipped_doctest.test_testsource
Trying:
import test_zipped_doctest as test_doctest
Expecting nothing
k
Trying:
name = 'test_zipped_doctest.sample_func'
Expecting nothing
k
Trying:
print(doctest.testsource(test_doctest, name))
Expecting:
# Blah blah
#
print(sample_func(22))
# Expected:
## 44
#
# Yee ha!
<BLANKLINE>
k
Trying:
name = 'test_zipped_doctest.SampleNewStyleClass'
Expecting nothing
k
Trying:
print(doctest.testsource(test_doctest, name))
Expecting:
print('1\n2\n3')
# Expected:
## 1
## 2
## 3
<BLANKLINE>
k
Trying:
name = 'test_zipped_doctest.SampleClass.a_classmethod'
Expecting nothing
k
Trying:
print(doctest.testsource(test_doctest, name))
Expecting:
print(SampleClass.a_classmethod(10))
# Expected:
## 12
print(SampleClass(0).a_classmethod(10))
# Expected:
## 12
<BLANKLINE>
k
doctest (test_zipped_doctest) ... 7 tests with zero failures
Finding tests in test_zipped_doctest.test_trailing_space_in_test
Trying:
x, y = 'foo', ''
Expecting nothing
k
Trying:
print(x, y)
Expecting:
foo
k
doctest (test_zipped_doctest) ... 2 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestSuite
Trying:
import unittest
Expecting nothing
k
Trying:
import sample_zipped_doctest
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite(sample_zipped_doctest)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest')
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest_no_doctests')
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=0 errors=0 failures=0>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings')
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=0 errors=0 failures=0>
k
Trying:
suite = sample_zipped_doctest.test_suite()
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
finder = doctest.DocTestFinder()
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
test_finder=finder)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=4>
k
Trying:
finder = doctest.DocTestFinder()
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest_no_docstrings',
test_finder=finder)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=0 errors=0 failures=0>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest', globs={})
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=5>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
extraglobs={'y': 1})
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=3>
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
optionflags=doctest.DONT_ACCEPT_BLANKLINE)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=5>
k
Trying:
def setUp(t):
import test_zipped_doctest as test_doctest
test_doctest.sillySetup = True
Expecting nothing
k
Trying:
def tearDown(t):
import test_zipped_doctest as test_doctest
del test_doctest.sillySetup
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest',
setUp=setUp, tearDown=tearDown)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=3>
k
Trying:
import test_zipped_doctest as test_doctest
Expecting nothing
k
Trying:
test_doctest.sillySetup
Expecting:
Traceback (most recent call last):
...
AttributeError: module 'test_zipped_doctest' has no attribute 'sillySetup'
k
Trying:
def setUp(test):
test.globs['y'] = 1
Expecting nothing
k
Trying:
suite = doctest.DocTestSuite('sample_zipped_doctest', setUp=setUp)
Expecting nothing
k
Trying:
suite.run(unittest.TestResult())
Expecting:
<unittest.result.TestResult run=9 errors=0 failures=3>
k
doctest (test_zipped_doctest) ... 33 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestFinder
doctest (test_zipped_doctest) ... 0 tests with zero failures
k
Traceback (most recent call last):
ValueError: line 4 of the docstring for some_test has inconsistent leading
whitespace: 'indentation'
k
Trying:
docstring = r'''
>>> print(('bad indentation',
... 2))
('bad', 'indentation')
'''
Expecting nothing
k
Trying:
parser.get_doctest(docstring, globs, 'some_test', 'filename', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 2 of the docstring for some_test has inconsistent leading
whitespace: '... 2))'
k
Trying:
docstring = '>>>print(1)\n1'
Expecting nothing
k
Trying:
parser.get_doctest(docstring, globs, 'some_test', 'filename', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 1 of the docstring for some_test lacks blank after >>>:
'>>>print(1)'
k
Trying:
docstring = '>>> if 1:\n...print(1)\n1'
Expecting nothing
k
Trying:
parser.get_doctest(docstring, globs, 'some_test', 'filename', 0)
Expecting:
Traceback (most recent call last):
ValueError: line 2 of the docstring for some_test lacks blank after ...:
'...print(1)'
k
Trying:
docstring = '''
>>> print 12
12
'''
Expecting nothing
k
Trying:
test = parser.get_doctest(docstring, globs, 'some_test',
'some_test', 20)
Expecting nothing
k
Trying:
same_test = parser.get_doctest(docstring, globs, 'some_test',
'some_test', 20)
Expecting nothing
k
Trying:
test == same_test
Expecting:
True
k
Trying:
test != same_test
Expecting:
False
k
Trying:
hash(test) == hash(same_test)
Expecting:
True
k
Trying:
docstring = '''
>>> print 42
42
'''
Expecting nothing
k
Trying:
other_test = parser.get_doctest(docstring, globs, 'other_test',
'other_file', 10)
Expecting nothing
k
Trying:
test == other_test
Expecting:
False
k
Trying:
test != other_test
Expecting:
True
k
Trying:
test < other_test
Expecting:
False
k
Trying:
other_test < test
Expecting:
True
k
Trying:
no_lineno = parser.get_doctest(docstring, globs, 'some_test',
'some_test', None)
Expecting nothing
k
Trying:
test.lineno is None
Expecting:
False
k
Trying:
no_lineno.lineno is None
Expecting:
True
k
Trying:
test < no_lineno
Expecting:
False
k
Trying:
no_lineno < test
Expecting:
True
k
Trying:
DocTestCase = doctest.DocTestCase
Expecting nothing
k
Trying:
test_case = DocTestCase(test)
Expecting nothing
k
Trying:
same_test_case = DocTestCase(same_test)
Expecting nothing
k
Trying:
other_test_case = DocTestCase(other_test)
Expecting nothing
k
Trying:
test_case == same_test_case
Expecting:
True
k
Trying:
test_case != same_test_case
Expecting:
False
k
Trying:
hash(test_case) == hash(same_test_case)
Expecting:
True
k
Trying:
test == other_test_case
Expecting:
False
k
Trying:
test != other_test_case
Expecting:
True
k
doctest (test_zipped_doctest) ... 46 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestParser
Trying:
s = '''
>>> x, y = 2, 3 # no output expected
>>> if 1:
... print(x)
... print(y)
2
3
Traceback (most recent call last):
ZeroDivisionError: integer division or modulo by zero
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
'''
>>> x = 12
>>> print('pre-exception output', x//0)
pre-exception output
Traceback (most recent call last):
ZeroDivisionError: integer division or modulo by zero
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 4, in f
Failed example:
print('pre-exception output', x//0)
Exception raised:
...
ZeroDivisionError: integer division or modulo by zero
TestResults(failed=1, attempted=2)
k
Trying:
def f(x):
r'''
>>> raise ValueError('multi\nline\nmessage')
Traceback (most recent call last):
ValueError: multi
line
message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
def f(x):
r'''
>>> raise ValueError('message')
Traceback (most recent call last):
ValueError: wrong message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
raise ValueError('message')
Expected:
Traceback (most recent call last):
ValueError: wrong message
Got:
Traceback (most recent call last):
...
ValueError: message
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
ValueError: wrong message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=1)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message')
Traceback (most recent call last):
HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 4, in f
Failed example:
raise HTTPException('message')
Expected:
Traceback (most recent call last):
HTTPException: message
Got:
Traceback (most recent call last):
...
http.client.HTTPException: message
TestResults(failed=1, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message')
Traceback (most recent call last):
http.client.HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
foo.bar.HTTPException: message
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
TypeError: wrong type
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
raise ValueError('message') #doctest: +IGNORE_EXCEPTION_DETAIL
Expected:
Traceback (most recent call last):
TypeError: wrong type
Got:
Traceback (most recent call last):
...
ValueError: message
TestResults(failed=1, attempted=1)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
foo.bar.HTTPException
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> from http.client import HTTPException
>>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
foo.bar.HTTPException:
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
Expecting:
TestResults(failed=0, attempted=2)
k
Trying:
def f(x):
r'''
>>> 1//0
0
'''
Expecting nothing
k
Trying:
test = doctest.DocTestFinder().find(f)[0]
Expecting nothing
k
Trying:
doctest.DocTestRunner(verbose=False).run(test)
# doctest: +ELLIPSIS
Expecting:
**********************************************************************
File ..., line 3, in f
Failed example:
1//0
Exception raised:
Traceback (most recent call last):
...
ZeroDivisionError: integer division or modulo by zero
TestResults(failed=1, attempted=1)
k
doctest (test_zipped_doctest) ... 39 tests with zero failures
Finding tests in test_zipped_doctest.test_DocTestRunner.option_directives
Trying:
def f(x): r'''
>>> print(list(range(10))) # should fail: no ellipsis
[0, 1, ..., 9]
Test report
===========
Failed tests:
- test_peg_generator
- test_cgitb
- test_idle
- test_tokenize
- test.test_pydoc.test_pydoc
- test_tabnanny
- test.test_asyncio.test_subprocess
- test.test_asyncio.test_futures
- test_dataclasses
- test_unittest
- test_curses
- test_rlcompleter
- test_functools
- test_zipimport_support
- test_enum
- test.test_asyncio.test_unix_events
- test_trace
- test_types
- test_getpass
- test_pdb
- test_zoneinfo
- test.test_inspect.test_inspect
- test_decimal
Test leaking resources:
- test_subprocess: references
- test_inspect: memory blocks
- test_unix_events: references
- test_getpass: memory blocks
- test_curses: memory blocks
- test_idle: references
- test_zoneinfo: memory blocks
- test_dataclasses: memory blocks
- test_subprocess: memory blocks
- test_unix_events: memory blocks
- test_idle: memory blocks
- test_futures: references
- test_decimal: references
- test_functools: references
- test_tokenize: references
- test_functools: memory blocks
- test_futures: memory blocks
- test_decimal: memory blocks
- test_tokenize: memory blocks
- test_types: references
- test_rlcompleter: references
- test_types: memory blocks
- test_rlcompleter: memory blocks
- test_peg_generator: references
- test_enum: references
- test_peg_generator: memory blocks
- test_zipimport_support: memory blocks
- test_tabnanny: references
- test_enum: memory blocks
- test_pydoc: references
- test_pdb: references
- test_trace: references
- test_unittest: references
- test_zipimport_support: references
- test_trace: memory blocks
- test_tabnanny: memory blocks
- test_pdb: memory blocks
- test_inspect: references
- test_pydoc: memory blocks
- test_curses: references
- test_zoneinfo: references
- test_cgitb: references
- test_dataclasses: references
- test_getpass: references
- test_unittest: memory blocks
- test_cgitb: memory blocks
Sincerely,
-The Buildbot
_______________________________________________
Buildbot-status mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/buildbot-status.python.org/
Member address: [email protected]