-
Notifications
You must be signed in to change notification settings - Fork 24
/
sphinx-doc__sphinx-8721.gpt-4-0125-preview.eval.log
926 lines (819 loc) · 69.3 KB
/
sphinx-doc__sphinx-8721.gpt-4-0125-preview.eval.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
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
513
514
515
516
517
518
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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Task Metadata:
- Instance ID: sphinx-doc__sphinx-8721
- Testbed: sphinx-doc__sphinx__3.5
-
- Evaluation Model: gpt-4-0125-preview
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: git -c advice.detachedHead=false checkout 82ef497a8c88f0f6e50d84520e7276bfbf65025d
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
Previous HEAD position was 4f8cb861e Bump version
HEAD is now at 82ef497a8 Merge pull request #8702 from tk0miya/4304_linkcheck_same_url
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/pytest/pytest -rA/' tox.ini
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/pytest/pytest -rA/' tox.ini
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/pytest/pytest -rA/' tox.ini
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/Jinja2>=2.3/Jinja2<3.0/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/Jinja2>=2.3/Jinja2<3.0/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/Jinja2>=2.3/Jinja2<3.0/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/sphinxcontrib-applehelp/sphinxcontrib-applehelp<=1.0.7/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-applehelp/sphinxcontrib-applehelp<=1.0.7/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-applehelp/sphinxcontrib-applehelp<=1.0.7/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/sphinxcontrib-devhelp/sphinxcontrib-devhelp<=1.0.5/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-devhelp/sphinxcontrib-devhelp<=1.0.5/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-devhelp/sphinxcontrib-devhelp<=1.0.5/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/sphinxcontrib-qthelp/sphinxcontrib-qthelp<=1.0.6/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-qthelp/sphinxcontrib-qthelp<=1.0.6/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-qthelp/sphinxcontrib-qthelp<=1.0.6/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/alabaster>=0.7,<0.8/alabaster>=0.7,<0.7.12/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/alabaster>=0.7,<0.8/alabaster>=0.7,<0.7.12/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/alabaster>=0.7,<0.8/alabaster>=0.7,<0.7.12/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i "s/'packaging',/'packaging', 'markupsafe<=2.0.1',/" setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i "s/'packaging',/'packaging', 'markupsafe<=2.0.1',/" setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i "s/'packaging',/'packaging', 'markupsafe<=2.0.1',/" setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/sphinxcontrib-htmlhelp/sphinxcontrib-htmlhelp<=2.0.4/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-htmlhelp/sphinxcontrib-htmlhelp<=2.0.4/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-htmlhelp/sphinxcontrib-htmlhelp<=2.0.4/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Running pre-test command: sed -i 's/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml<=1.1.9/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml<=1.1.9/' setup.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
Pre-installation Command: conda run -n sphinx-doc__sphinx__3.5 sed -i 's/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml<=1.1.9/' setup.py
Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: git apply -v /home/swe-bench/temp_sphinx-doc__sphinx-8721_pred_try.patch
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
Checking patch sphinx/ext/viewcode.py...
Applied patch sphinx/ext/viewcode.py cleanly.
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: git apply -v -R /home/swe-bench/temp_sphinx-doc__sphinx-8721_pred_try.patch
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
Checking patch sphinx/ext/viewcode.py...
Applied patch sphinx/ext/viewcode.py cleanly.
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: git apply -v /home/swe-bench/temp_sphinx-doc__sphinx-8721_pred.patch
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
Checking patch sphinx/ext/viewcode.py...
Applied patch sphinx/ext/viewcode.py cleanly.
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: git restore tests/test_ext_viewcode.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: git apply -v /home/swe-bench/temp_sphinx-doc__sphinx-8721_test.patch
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
Checking patch tests/test_ext_viewcode.py...
Applied patch tests/test_ext_viewcode.py cleanly.
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 0
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: conda run -n sphinx-doc__sphinx__3.5 tox -epy39 -v -- tests/test_ext_viewcode.py;
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Command: conda run -n sphinx-doc__sphinx__3.5 tox -epy39 -v -- tests/test_ext_viewcode.py
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Subprocess args: {"cwd": "/home/swe-bench/sphinx-doc__sphinx", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Std. Output:
.pkg: find interpreter for spec PythonSpec(major=3, minor=9)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3, minor=5)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python3, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.11.8.final.0-64, exe=/home/swe-bench/miniconda3/bin/python3, platform=linux, version='3.11.8 (main, Feb 26 2024, 21:39:34) [GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3, minor=6)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python3, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.11.8.final.0-64, exe=/home/swe-bench/miniconda3/bin/python3, platform=linux, version='3.11.8 (main, Feb 26 2024, 21:39:34) [GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3, minor=7)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python3, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.11.8.final.0-64, exe=/home/swe-bench/miniconda3/bin/python3, platform=linux, version='3.11.8 (main, Feb 26 2024, 21:39:34) [GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3, minor=8)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python3, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: proposed PathPythonInfo(spec=CPython3.11.8.final.0-64, exe=/home/swe-bench/miniconda3/bin/python3, platform=linux, version='3.11.8 (main, Feb 26 2024, 21:39:34) [GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(major=3)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
.pkg: find interpreter for spec PythonSpec(path=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python)
.pkg: proposed PythonInfo(spec=CPython3.9.19.final.0-64, exe=/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/bin/python, platform=linux, version='3.9.19 (main, May 6 2024, 19:43:03) \n[GCC 11.2.0]', encoding_fs_io=utf-8-utf-8)
py39: create virtual environment via CPython3Posix(dest=/home/swe-bench/sphinx-doc__sphinx/.tox/py39, clear=False, no_vcs_ignore=False, global=False)
py39: add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/swe-bench/.local/share/virtualenv)
py39: add activators for Bash, CShell, Fish, Nushell, PowerShell, Python
.pkg: create virtual environment via CPython3Posix(dest=/home/swe-bench/sphinx-doc__sphinx/.tox/.pkg, clear=False, no_vcs_ignore=False, global=False)
.pkg: add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/swe-bench/.local/share/virtualenv)
.pkg: add activators for Bash, CShell, Fish, Nushell, PowerShell, Python
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
.pkg: exit 0 (1.34 seconds) /home/swe-bench/sphinx-doc__sphinx> python -I -m pip install 'setuptools>=40.8.0' wheel pid=146
.pkg: _optional_hooks> python /home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: exit None (0.51 seconds) /home/swe-bench/sphinx-doc__sphinx> python /home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=151
.pkg: get_requires_for_build_editable> python /home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: exit None (0.60 seconds) /home/swe-bench/sphinx-doc__sphinx> python /home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=154
.pkg: install_requires_for_build_editable> python -I -m pip install wheel
.pkg: exit 0 (1.17 seconds) /home/swe-bench/sphinx-doc__sphinx> python -I -m pip install wheel pid=158
.pkg: build_editable> python /home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: exit None (0.48 seconds) /home/swe-bench/sphinx-doc__sphinx> python /home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=163
py39: install_package_deps> python -I -m pip install 'Jinja2<3.0' 'Pygments>=2.0' 'alabaster<0.7.12,>=0.7' 'babel>=1.3' 'colorama>=0.3.5; sys_platform == "win32"' cython 'docutils>=0.12' html5lib imagesize 'markupsafe<=2.0.1' packaging pytest pytest-cov 'requests>=2.5.0' setuptools 'snowballstemmer>=1.1' 'sphinxcontrib-applehelp<=1.0.7' 'sphinxcontrib-devhelp<=1.0.5' 'sphinxcontrib-htmlhelp<=2.0.4' sphinxcontrib-jsmath 'sphinxcontrib-qthelp<=1.0.6' 'sphinxcontrib-serializinghtml<=1.1.9' 'typed-ast; python_version < "3.8"'
py39: exit 0 (16.49 seconds) /home/swe-bench/sphinx-doc__sphinx> python -I -m pip install 'Jinja2<3.0' 'Pygments>=2.0' 'alabaster<0.7.12,>=0.7' 'babel>=1.3' 'colorama>=0.3.5; sys_platform == "win32"' cython 'docutils>=0.12' html5lib imagesize 'markupsafe<=2.0.1' packaging pytest pytest-cov 'requests>=2.5.0' setuptools 'snowballstemmer>=1.1' 'sphinxcontrib-applehelp<=1.0.7' 'sphinxcontrib-devhelp<=1.0.5' 'sphinxcontrib-htmlhelp<=2.0.4' sphinxcontrib-jsmath 'sphinxcontrib-qthelp<=1.0.6' 'sphinxcontrib-serializinghtml<=1.1.9' 'typed-ast; python_version < "3.8"' pid=167
py39: install_package> python -I -m pip install --force-reinstall --no-deps /home/swe-bench/sphinx-doc__sphinx/.tox/.tmp/package/1/Sphinx-3.5.0.dev20240512-0.editable-py3-none-any.whl
py39: exit 0 (0.98 seconds) /home/swe-bench/sphinx-doc__sphinx> python -I -m pip install --force-reinstall --no-deps /home/swe-bench/sphinx-doc__sphinx/.tox/.tmp/package/1/Sphinx-3.5.0.dev20240512-0.editable-py3-none-any.whl pid=179
py39: commands[0]> python -X dev -m pytest -rA --durations 25 tests/test_ext_viewcode.py
[1m============================= test session starts ==============================[0m
platform linux -- Python 3.9.19, pytest-8.2.0, pluggy-1.5.0
cachedir: .tox/py39/.pytest_cache
libraries: Sphinx-3.5.0+/82ef497a8, docutils-0.19
base tempdir: /tmp/pytest-of-swe-bench/pytest-0
rootdir: /home/swe-bench/sphinx-doc__sphinx
configfile: setup.cfg
plugins: cov-5.0.0
collected 5 items
tests/test_ext_viewcode.py [31mF[0m[31mF[0m[32m.[0m[32m.[0m[32m.[0m[31m [100%][0m
=================================== FAILURES ===================================
[31m[1m________________________________ test_viewcode _________________________________[0m
app = <SphinxTestApp buildername='html'>
status = <_io.StringIO object at 0x745ab7361af0>
warning = <_io.StringIO object at 0x745ab7361b90>
[0m[37m@pytest[39;49;00m.mark.sphinx(testroot=[33m'[39;49;00m[33mext-viewcode[39;49;00m[33m'[39;49;00m)[90m[39;49;00m
[94mdef[39;49;00m [92mtest_viewcode[39;49;00m(app, status, warning):[90m[39;49;00m
app.builder.build_all()[90m[39;49;00m
[90m[39;49;00m
warnings = re.sub([33mr[39;49;00m[33m'[39;49;00m[33m\\[39;49;00m[33m+[39;49;00m[33m'[39;49;00m, [33m'[39;49;00m[33m/[39;49;00m[33m'[39;49;00m, warning.getvalue())[90m[39;49;00m
[94massert[39;49;00m re.findall([90m[39;49;00m
[33mr[39;49;00m[33m"[39;49;00m[33mindex.rst:[39;49;00m[33m\[39;49;00m[33md+: WARNING: Object named [39;49;00m[33m'[39;49;00m[33mfunc1[39;49;00m[33m'[39;49;00m[33m not found in include [39;49;00m[33m"[39;49;00m +[90m[39;49;00m
[33mr[39;49;00m[33m"[39;49;00m[33mfile .*/spam/__init__.py[39;49;00m[33m'[39;49;00m[33m"[39;49;00m,[90m[39;49;00m
warnings[90m[39;49;00m
)[90m[39;49;00m
[90m[39;49;00m
result = (app.outdir / [33m'[39;49;00m[33mindex.html[39;49;00m[33m'[39;49;00m).read_text()[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33mhref=[39;49;00m[33m"[39;49;00m[33m_modules/spam/mod1.html#func1[39;49;00m[33m"[39;49;00m[33m'[39;49;00m) == [94m2[39;49;00m[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33mhref=[39;49;00m[33m"[39;49;00m[33m_modules/spam/mod2.html#func2[39;49;00m[33m"[39;49;00m[33m'[39;49;00m) == [94m2[39;49;00m[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33mhref=[39;49;00m[33m"[39;49;00m[33m_modules/spam/mod1.html#Class1[39;49;00m[33m"[39;49;00m[33m'[39;49;00m) == [94m2[39;49;00m[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33mhref=[39;49;00m[33m"[39;49;00m[33m_modules/spam/mod2.html#Class2[39;49;00m[33m"[39;49;00m[33m'[39;49;00m) == [94m2[39;49;00m[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33m@decorator[39;49;00m[33m'[39;49;00m) == [94m1[39;49;00m[90m[39;49;00m
[90m[39;49;00m
[90m# test that the class attribute is correctly documented[39;49;00m[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33mthis is Class3[39;49;00m[33m'[39;49;00m) == [94m2[39;49;00m[90m[39;49;00m
[94massert[39;49;00m [33m'[39;49;00m[33mthis is the class attribute class_attr[39;49;00m[33m'[39;49;00m [95min[39;49;00m result[90m[39;49;00m
[90m# the next assert fails, until the autodoc bug gets fixed[39;49;00m[90m[39;49;00m
[94massert[39;49;00m result.count([33m'[39;49;00m[33mthis is the class attribute class_attr[39;49;00m[33m'[39;49;00m) == [94m2[39;49;00m[90m[39;49;00m
[90m[39;49;00m
result = (app.outdir / [33m'[39;49;00m[33m_modules/spam/mod1.html[39;49;00m[33m'[39;49;00m).read_text()[90m[39;49;00m
result = re.sub([33m'[39;49;00m[33m<span class=[39;49;00m[33m"[39;49;00m[33m.*?[39;49;00m[33m"[39;49;00m[33m>[39;49;00m[33m'[39;49;00m, [33m'[39;49;00m[33m<span>[39;49;00m[33m'[39;49;00m, result) [90m# filter pygments classes[39;49;00m[90m[39;49;00m
> [94massert[39;49;00m ([33m'[39;49;00m[33m<div class=[39;49;00m[33m"[39;49;00m[33mviewcode-block[39;49;00m[33m"[39;49;00m[33m id=[39;49;00m[33m"[39;49;00m[33mClass1[39;49;00m[33m"[39;49;00m[33m><a class=[39;49;00m[33m"[39;49;00m[33mviewcode-back[39;49;00m[33m"[39;49;00m[33m [39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33mhref=[39;49;00m[33m"[39;49;00m[33m../../index.html#spam.Class1[39;49;00m[33m"[39;49;00m[33m>[docs]</a>[39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33m<span>@decorator</span>[39;49;00m[33m\n[39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33m<span>class</span> <span>Class1</span>[39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33m<span>(</span><span>object</span><span>):</span>[39;49;00m[33m\n[39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33m <span>"""</span>[39;49;00m[33m\n[39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33m<span> this is Class1</span>[39;49;00m[33m\n[39;49;00m[33m'[39;49;00m[90m[39;49;00m
[33m'[39;49;00m[33m<span> """</span></div>[39;49;00m[33m\n[39;49;00m[33m'[39;49;00m) [95min[39;49;00m result[90m[39;49;00m
[1m[31mE assert '<div class="viewcode-block" id="Class1"><a class="viewcode-back" href="../../index.html#spam.Class1">[docs]</a><span>...an>\n <span>"""</span>\n<span> this is Class1</span>\n<span> """</span></div>\n' in '\n<!DOCTYPE html>\n\n<html>\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-..."https://github.com/bitprophet/alabaster">Alabaster 0.7.11</a>\n \n </div>\n\n \n\n \n </body>\n</html>'[0m
[1m[31mtests/test_ext_viewcode.py[0m:42: AssertionError
--------------------------- Captured stdout teardown ---------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode
# outdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/html
# status:
[01mRunning Sphinx v3.5.0+/82ef497a8[39;49;00m
[01mbuilding [html]: [39;49;00mall source files
[01mupdating environment: [39;49;00m[new config] 2 added, 0 changed, 0 removed
[01mreading sources... [39;49;00m[ 50%] [35mindex[39;49;00m
[01mreading sources... [39;49;00m[100%] [35mobjects[39;49;00m
[01mlooking for now-outdated files... [39;49;00mnone found
[01mpickling environment... [39;49;00mdone
[01mchecking consistency... [39;49;00mdone
[01mpreparing documents... [39;49;00mdone
[01mwriting output... [39;49;00m[ 50%] [32mindex[39;49;00m
[01mwriting output... [39;49;00m[100%] [32mobjects[39;49;00m
[01mgenerating indices... [39;49;00mgenindex py-modindex done
[01mhighlighting module code... [39;49;00m[ 50%] [94mspam.mod1[39;49;00m
[01mhighlighting module code... [39;49;00m[100%] [94mspam.mod2[39;49;00m
[01mwriting additional pages... [39;49;00msearch done
[01mcopying static files... [39;49;00mdone
[01mcopying extra files... [39;49;00mdone
[01mdumping search index in English (code: en)... [39;49;00mdone
[01mdumping object inventory... [39;49;00mdone
# warning:
[91mWARNING: while setting up extension sphinx.addnodes: node class 'meta' is already registered, its visitors will be overridden[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/index.rst:23: WARNING: Object named 'func1' not found in include file '/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/spam/__init__.py'[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/spam/mod1.py:docstring of spam.mod1.Class3:1: WARNING: duplicate object description of spam.mod3.Class3, other instance in index, use :noindex: for one of them[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/spam/mod1.py:docstring of spam.mod3.Class3.class_attr:1: WARNING: duplicate object description of spam.mod3.Class3.class_attr, other instance in index, use :noindex: for one of them[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:84: WARNING: Error in declarator
If declarator-id with parameters (e.g., 'void f(int arg)'):
Invalid C declaration: Expected identifier in nested name. [error at 18]
Sphinx_DoSomething()
------------------^
If parenthesis in noptr-declarator (e.g., 'void (*f(int arg))(double)'):
Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 19]
Sphinx_DoSomething()
-------------------^
[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:86: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 19]
SphinxStruct.member
-------------------^[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:92: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 13]
sphinx_global
-------------^[39;49;00m
[31m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:155: WARNING: Unknown directive type "userdesc".
.. userdesc:: myobj:parameter
Description of userdesc.[39;49;00m
[31m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:160: WARNING: Unknown interpreted text role "userdescrole".[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:166: WARNING: Too many template argument lists compared to parameter lists. Argument lists: 1, Parameter lists: 0, Extra empty parameters lists prepended: 1. Declaration:
n::Array<T, d>[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:117: WARNING: Unparseable C cross-reference: 'SphinxType *'
Invalid C declaration: Expected end of definition. [error at 11]
SphinxType *
-----------^[39;49;00m
[31m[1m__________________________ test_viewcode_epub_default __________________________[0m
app = <SphinxTestApp buildername='epub'>
status = <_io.StringIO object at 0x745ab6108550>
warning = <_io.StringIO object at 0x745ab61085f0>
[0m[37m@pytest[39;49;00m.mark.sphinx([33m'[39;49;00m[33mepub[39;49;00m[33m'[39;49;00m, testroot=[33m'[39;49;00m[33mext-viewcode[39;49;00m[33m'[39;49;00m)[90m[39;49;00m
[94mdef[39;49;00m [92mtest_viewcode_epub_default[39;49;00m(app, status, warning):[90m[39;49;00m
app.builder.build_all()[90m[39;49;00m
[90m[39;49;00m
> [94massert[39;49;00m [95mnot[39;49;00m (app.outdir / [33m'[39;49;00m[33m_modules/spam/mod1.xhtml[39;49;00m[33m'[39;49;00m).exists()[90m[39;49;00m
[1m[31mE AssertionError: assert not True[0m
[1m[31mE + where True = <bound method path.exists of path('/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/epub/_modules/spam/mod1.xhtml')>()[0m
[1m[31mE + where <bound method path.exists of path('/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/epub/_modules/spam/mod1.xhtml')> = (path('/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/epub') / '_modules/spam/mod1.xhtml').exists[0m
[1m[31mE + where path('/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/epub') = <SphinxTestApp buildername='epub'>.outdir[0m
[1m[31mtests/test_ext_viewcode.py[0m:56: AssertionError
--------------------------- Captured stdout teardown ---------------------------
# testroot: root
# builder: epub
# srcdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode
# outdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/epub
# status:
[01mRunning Sphinx v3.5.0+/82ef497a8[39;49;00m
[01mloading pickled environment... [39;49;00mdone
[01mbuilding [epub]: [39;49;00mall source files
[01mupdating environment: [39;49;00m0 added, 0 changed, 0 removed
[01mlooking for now-outdated files... [39;49;00mnone found
[01mpreparing documents... [39;49;00mdone
[01mwriting output... [39;49;00m[ 50%] [32mindex[39;49;00m
[01mwriting output... [39;49;00m[100%] [32mobjects[39;49;00m
[01mgenerating indices... [39;49;00mgenindex py-modindex done
[01mhighlighting module code... [39;49;00m[ 50%] [94mspam.mod1[39;49;00m
[01mhighlighting module code... [39;49;00m[100%] [94mspam.mod2[39;49;00m
[01mwriting additional pages... [39;49;00mdone
[01mcopying static files... [39;49;00mdone
[01mcopying extra files... [39;49;00mdone
writing mimetype file...
writing META-INF/container.xml file...
writing content.opf file...
writing nav.xhtml file...
writing toc.ncx file...
writing Python.epub file...
# warning:
[91mWARNING: while setting up extension sphinx.addnodes: node class 'meta' is already registered, its visitors will be overridden[39;49;00m
[91mWARNING: conf value "epub_copyright" (or "copyright")should not be empty for EPUB3[39;49;00m
[91mWARNING: conf value "version" should not be empty for EPUB3[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:117: WARNING: Unparseable C cross-reference: 'SphinxType *'
Invalid C declaration: Expected end of definition. [error at 11]
SphinxType *
-----------^[39;49;00m
[33m=============================== warnings summary ===============================[0m
sphinx/util/docutils.py:45
/home/swe-bench/sphinx-doc__sphinx/sphinx/util/docutils.py:45: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
__version_info__ = tuple(LooseVersion(docutils.__version__).version)
sphinx/registry.py:22
/home/swe-bench/sphinx-doc__sphinx/sphinx/registry.py:22: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import iter_entry_points
.tox/py39/lib/python3.9/site-packages/pkg_resources/__init__.py:2832
/home/swe-bench/sphinx-doc__sphinx/.tox/py39/lib/python3.9/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
sphinx/directives/patches.py:14
/home/swe-bench/sphinx-doc__sphinx/sphinx/directives/patches.py:14: DeprecationWarning: The `docutils.parsers.rst.directive.html` module will be removed in Docutils 2.0. Since Docutils 0.18, the "Meta" node is defined in `docutils.parsers.rst.directives.misc`.
from docutils.parsers.rst.directives import html, images, tables
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:210: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(): # type: Node
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/i18n.py:95: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.translatable):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:110: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for ref in self.document.traverse(nodes.substitution_reference):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:131: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.target):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:150: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.block_quote):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:175: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.Element):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:222: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.index):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:189: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.section):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:279: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.doctest_block):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/citation.py:116: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.citation):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/citation.py:135: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.citation_reference):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/latex/transforms.py:36: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(matcher): # type: nodes.Element
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:291: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(matcher): # type: Element
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/util/compat.py:44: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.index):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/index.py:51: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in document.traverse(addnodes.index):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/math.py:84: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
self.data['has_equations'][docname] = any(document.traverse(math_node))
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/collectors/asset.py:46: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in doctree.traverse(nodes.image):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/collectors/asset.py:127: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in doctree.traverse(addnodes.download_reference):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/collectors/title.py:46: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in doctree.traverse(nodes.section):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/ext/viewcode.py:96: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for objnode in doctree.traverse(addnodes.desc):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:301: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.system_message):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/__init__.py:390: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.manpage):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/i18n.py:488: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for inline in self.document.traverse(matcher): # type: nodes.inline
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/python.py:283: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in result.traverse(nodes.Text):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/html/__init__.py:422: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
self.docsettings = OptionParser(
tests/test_ext_viewcode.py: 350 warnings
/home/swe-bench/miniconda3/envs/sphinx-doc__sphinx__3.5/lib/python3.9/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/c.py:3494: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(AliasNode):
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/domains/cpp.py:7070: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(AliasNode):
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/post_transforms/__init__.py:69: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.pending_xref):
tests/test_ext_viewcode.py: 47 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/util/nodes.py:598: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in document.traverse(addnodes.only):
tests/test_ext_viewcode.py: 30 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/post_transforms/images.py:33: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.image):
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/post_transforms/__init__.py:216: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.desc_sig_element):
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/latex/transforms.py:48: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.substitution_definition):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/html/transforms.py:44: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(matcher): # type: nodes.literal
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/latex/transforms.py:606: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(nodes.title):
tests/test_ext_viewcode.py: 39 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/latex/transforms.py:608: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for i, index in enumerate(node.traverse(addnodes.index)):
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/post_transforms/code.py:43: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in self.document.traverse(addnodes.highlightlang):
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/post_transforms/code.py:95: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for lbnode in self.document.traverse(nodes.literal_block): # type: nodes.literal_block
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/transforms/post_transforms/code.py:99: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for dbnode in self.document.traverse(nodes.doctest_block): # type: nodes.doctest_block
tests/test_ext_viewcode.py: 15 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/__init__.py:541: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for toctreenode in doctree.traverse(addnodes.toctree):
tests/test_ext_viewcode.py: 23 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/adapters/toctree.py:203: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for subtocnode in toc.traverse(addnodes.toctree):
tests/test_ext_viewcode.py: 23 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/adapters/toctree.py:261: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for refnode in newnode.traverse(nodes.reference):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/__init__.py:181: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in doctree.traverse(nodes.image):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/html/__init__.py:844: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in doctree.traverse(nodes.image):
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/adapters/toctree.py:312: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in toc.traverse(nodes.reference):
tests/test_ext_viewcode.py: 20 warnings
/home/swe-bench/sphinx-doc__sphinx/.tox/py39/lib/python3.9/site-packages/alabaster/layout.html:114: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
_gaq.push(['_setAllowLinker', true]);
tests/test_ext_viewcode.py: 20 warnings
/home/swe-bench/sphinx-doc__sphinx/.tox/py39/lib/python3.9/site-packages/alabaster/about.html:70: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py: 20 warnings
/home/swe-bench/sphinx-doc__sphinx/.tox/py39/lib/python3.9/site-packages/alabaster/about.html:99: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py: 20 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/environment/adapters/toctree.py:328: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for toctreenode in doctree.traverse(addnodes.toctree):
tests/test_ext_viewcode.py: 20 warnings
/home/swe-bench/sphinx-doc__sphinx/.tox/py39/lib/python3.9/site-packages/alabaster/layout.html:215: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py: 20 warnings
/home/swe-bench/sphinx-doc__sphinx/.tox/py39/lib/python3.9/site-packages/alabaster/layout.html:238: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
<template>:33: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
<template>:224: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
<template>:386: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py::test_viewcode
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_local_source_files
<template>:401: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in MarkupSafe 2.1.
tests/test_ext_viewcode.py: 10 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/util/nodes.py:350: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for img in node.traverse(nodes.image):
tests/test_ext_viewcode.py: 10 warnings
/home/swe-bench/sphinx-doc__sphinx/sphinx/util/nodes.py:352: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for raw in node.traverse(nodes.raw):
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/_epub_base.py:275: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for reference in tree.traverse(nodes.reference):
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/_epub_base.py:283: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for target in tree.traverse(nodes.target):
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/_epub_base.py:290: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for desc_signature in tree.traverse(addnodes.desc_signature):
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_default
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
tests/test_ext_viewcode.py::test_viewcode_epub_enabled
/home/swe-bench/sphinx-doc__sphinx/sphinx/builders/_epub_base.py:340: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for node in tree.traverse(nodes.reference):
tests/test_ext_viewcode.py::test_linkcode
tests/test_ext_viewcode.py::test_linkcode
/home/swe-bench/sphinx-doc__sphinx/sphinx/ext/linkcode.py:42: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
for objnode in doctree.traverse(addnodes.desc):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
--------------------------- Captured stdout teardown ---------------------------
# testroot: root
# builder: epub
# srcdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode
# outdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/epub
# status:
[01mRunning Sphinx v3.5.0+/82ef497a8[39;49;00m
[01mloading pickled environment... [39;49;00mdone
[01mbuilding [epub]: [39;49;00mall source files
[01mupdating environment: [39;49;00m0 added, 0 changed, 0 removed
[01mlooking for now-outdated files... [39;49;00mnone found
[01mpreparing documents... [39;49;00mdone
[01mwriting output... [39;49;00m[ 50%] [32mindex[39;49;00m
[01mwriting output... [39;49;00m[100%] [32mobjects[39;49;00m
[01mgenerating indices... [39;49;00mgenindex py-modindex done
[01mhighlighting module code... [39;49;00m[ 50%] [94mspam.mod1[39;49;00m
[01mhighlighting module code... [39;49;00m[100%] [94mspam.mod2[39;49;00m
[01mwriting additional pages... [39;49;00mdone
[01mcopying static files... [39;49;00mdone
[01mcopying extra files... [39;49;00mdone
writing mimetype file...
writing META-INF/container.xml file...
writing content.opf file...
writing nav.xhtml file...
writing toc.ncx file...
writing Python.epub file...
# warning:
[91mWARNING: while setting up extension sphinx.addnodes: node class 'meta' is already registered, its visitors will be overridden[39;49;00m
[91mWARNING: conf value "epub_copyright" (or "copyright")should not be empty for EPUB3[39;49;00m
[91mWARNING: conf value "version" should not be empty for EPUB3[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:117: WARNING: Unparseable C cross-reference: 'SphinxType *'
Invalid C declaration: Expected end of definition. [error at 11]
SphinxType *
-----------^[39;49;00m
--------------------------- Captured stdout teardown ---------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode
# outdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/_build/html
# status:
[01mRunning Sphinx v3.5.0+/82ef497a8[39;49;00m
[01mloading pickled environment... [39;49;00mfailed
failed: build environment version not current
[01mupdating environment: [39;49;00m[new config] 2 added, 0 changed, 0 removed
[01mreading sources... [39;49;00m[ 50%] [35mindex[39;49;00m
[01mreading sources... [39;49;00m[100%] [35mobjects[39;49;00m
[01mlooking for now-outdated files... [39;49;00mnone found
[01mpickling environment... [39;49;00mdone
[01mchecking consistency... [39;49;00mdone
[01mpreparing documents... [39;49;00mdone
[01mwriting output... [39;49;00m[ 50%] [32mindex[39;49;00m
[01mwriting output... [39;49;00m[100%] [32mobjects[39;49;00m
[01mgenerating indices... [39;49;00mgenindex py-modindex done
[01mwriting additional pages... [39;49;00msearch done
[01mcopying static files... [39;49;00mdone
[01mcopying extra files... [39;49;00mdone
[01mdumping search index in English (code: en)... [39;49;00mdone
[01mdumping object inventory... [39;49;00mdone
# warning:
[91mWARNING: while setting up extension sphinx.addnodes: node class 'meta' is already registered, its visitors will be overridden[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/index.rst:23: WARNING: Object named 'func1' not found in include file '/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/spam/__init__.py'[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/spam/mod1.py:docstring of spam.mod1.Class3:1: WARNING: duplicate object description of spam.mod3.Class3, other instance in index, use :noindex: for one of them[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/spam/mod1.py:docstring of spam.mod3.Class3.class_attr:1: WARNING: duplicate object description of spam.mod3.Class3.class_attr, other instance in index, use :noindex: for one of them[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:84: WARNING: Error in declarator
If declarator-id with parameters (e.g., 'void f(int arg)'):
Invalid C declaration: Expected identifier in nested name. [error at 18]
Sphinx_DoSomething()
------------------^
If parenthesis in noptr-declarator (e.g., 'void (*f(int arg))(double)'):
Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 19]
Sphinx_DoSomething()
-------------------^
[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:86: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 19]
SphinxStruct.member
-------------------^[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:92: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 13]
sphinx_global
-------------^[39;49;00m
[31m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:155: WARNING: Unknown directive type "userdesc".
.. userdesc:: myobj:parameter
Description of userdesc.[39;49;00m
[31m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:160: WARNING: Unknown interpreted text role "userdescrole".[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:166: WARNING: Too many template argument lists compared to parameter lists. Argument lists: 1, Parameter lists: 0, Extra empty parameters lists prepended: 1. Declaration:
n::Array<T, d>[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode/objects.rst:117: WARNING: Unparseable C cross-reference: 'SphinxType *'
Invalid C declaration: Expected end of definition. [error at 11]
SphinxType *
-----------^[39;49;00m
--------------------------- Captured stdout teardown ---------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode-find
# outdir: /tmp/pytest-of-swe-bench/pytest-0/ext-viewcode-find/_build/html
# status:
[01mRunning Sphinx v3.5.0+/82ef497a8[39;49;00m
[01mbuilding [html]: [39;49;00mall source files
[01mupdating environment: [39;49;00m[new config] 1 added, 0 changed, 0 removed
[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
[01mlooking for now-outdated files... [39;49;00mnone found
[01mpickling environment... [39;49;00mdone
[01mchecking consistency... [39;49;00mdone
[01mpreparing documents... [39;49;00mdone
[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
[01mgenerating indices... [39;49;00mgenindex py-modindex done
[01mhighlighting module code... [39;49;00m[ 50%] [94mnot_a_package[39;49;00m
[01mhighlighting module code... [39;49;00m[100%] [94mnot_a_package.submodule[39;49;00m
[01mwriting additional pages... [39;49;00msearch done
[01mcopying static files... [39;49;00mdone
[01mcopying extra files... [39;49;00mdone
[01mdumping search index in English (code: en)... [39;49;00mdone
[01mdumping object inventory... [39;49;00mdone
# warning:
[91mWARNING: while setting up extension sphinx.addnodes: node class 'meta' is already registered, its visitors will be overridden[39;49;00m
[91m/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode-find/index.rst:28: WARNING: Object named 'func1' not found in include file '/tmp/pytest-of-swe-bench/pytest-0/ext-viewcode-find/not_a_package/__init__.py'[39;49;00m
============================= slowest 25 durations =============================
1.07s setup tests/test_ext_viewcode.py::test_viewcode
0.74s call tests/test_ext_viewcode.py::test_linkcode
0.65s call tests/test_ext_viewcode.py::test_viewcode
0.40s call tests/test_ext_viewcode.py::test_local_source_files
0.28s call tests/test_ext_viewcode.py::test_viewcode_epub_default
0.26s call tests/test_ext_viewcode.py::test_viewcode_epub_enabled
0.05s setup tests/test_ext_viewcode.py::test_viewcode_epub_default
0.03s setup tests/test_ext_viewcode.py::test_linkcode
0.02s setup tests/test_ext_viewcode.py::test_viewcode_epub_enabled
0.02s setup tests/test_ext_viewcode.py::test_local_source_files
(5 durations < 0.005s hidden. Use -vv to show these durations.)
[36m[1m=========================== short test summary info ============================[0m
[32mPASSED[0m tests/test_ext_viewcode.py::[1mtest_viewcode_epub_enabled[0m
[32mPASSED[0m tests/test_ext_viewcode.py::[1mtest_linkcode[0m
[32mPASSED[0m tests/test_ext_viewcode.py::[1mtest_local_source_files[0m
[31mFAILED[0m tests/test_ext_viewcode.py::[1mtest_viewcode[0m - assert '<div class="viewcode-block" id="Class1"><a class="viewcode-back" hr...
[31mFAILED[0m tests/test_ext_viewcode.py::[1mtest_viewcode_epub_default[0m - AssertionError: assert not True
[31m================== [31m[1m2 failed[0m, [32m3 passed[0m, [33m986 warnings[0m[31m in 3.82s[0m[31m ===================[0m
py39: exit 1 (6.27 seconds) /home/swe-bench/sphinx-doc__sphinx> python -X dev -m pytest -rA --durations 25 tests/test_ext_viewcode.py pid=186
py39: FAIL code 1 (28.67=setup[22.40]+cmd[6.27] seconds)
evaluation failed :( (29.64 seconds)
ERROR conda.cli.main_run:execute(124): `conda run tox -epy39 -v -- tests/test_ext_viewcode.py` failed. (See above for error)
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Return Code: 1
>>>>> Some Tests Failed
[sphinx-doc__sphinx__3.5] [sphinx-doc__sphinx-8721] Test script run successful