-
Notifications
You must be signed in to change notification settings - Fork 24
/
pytest-dev__pytest-11143.gpt-4-0125-preview.eval.log
1224 lines (1021 loc) · 76.1 KB
/
pytest-dev__pytest-11143.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
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Task Metadata:
- Instance ID: pytest-dev__pytest-11143
- Testbed: pytest-dev__pytest__8.0
-
- Evaluation Model: gpt-4-0125-preview
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: git -c advice.detachedHead=false checkout 6995257cf470d2143ad1683824962de4071c0eb7
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
Previous HEAD position was 10056865d Merge pull request #11309 from bluetech/docs-xfail
HEAD is now at 6995257cf [pre-commit.ci] pre-commit autoupdate (#11165)
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Return Code: 0
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-11143_pred_try.patch
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
Checking patch src/_pytest/assertion/rewrite.py...
Applied patch src/_pytest/assertion/rewrite.py cleanly.
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Return Code: 0
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: git apply -v -R /home/swe-bench/temp_pytest-dev__pytest-11143_pred_try.patch
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
Checking patch src/_pytest/assertion/rewrite.py...
Applied patch src/_pytest/assertion/rewrite.py cleanly.
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Return Code: 0
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-11143_pred.patch
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
Checking patch src/_pytest/assertion/rewrite.py...
Applied patch src/_pytest/assertion/rewrite.py cleanly.
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Return Code: 0
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: git restore testing/test_assertrewrite.py
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Return Code: 0
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-11143_test.patch
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
Checking patch testing/test_assertrewrite.py...
Applied patch testing/test_assertrewrite.py cleanly.
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Return Code: 0
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: conda run -n pytest-dev__pytest__8.0 pytest -rA testing/test_assertrewrite.py;
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Command: conda run -n pytest-dev__pytest__8.0 pytest -rA testing/test_assertrewrite.py
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[pytest-dev__pytest__8.0] [pytest-dev__pytest-11143] Std. Output:
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /home/swe-bench/pytest-dev__pytest
configfile: pyproject.toml
collected 116 items
testing/test_assertrewrite.py .......................................... [ 36%]
........................................................................ [ 98%]
.. [100%]
==================================== PASSES ====================================
__________ TestAssertionRewriteHookDetails.test_read_pyc_more_invalid __________
----------------------------- Captured stdout call -----------------------------
_read_pyc(/tmp/pytest-of-swe-bench/pytest-0/test_read_pyc_more_invalid0/source.py): invalid pyc (too short)
_read_pyc(/tmp/pytest-of-swe-bench/pytest-0/test_read_pyc_more_invalid0/source.py): invalid pyc (bad magic number)
_read_pyc(/tmp/pytest-of-swe-bench/pytest-0/test_read_pyc_more_invalid0/source.py): invalid pyc (unsupported flags)
_read_pyc(/tmp/pytest-of-swe-bench/pytest-0/test_read_pyc_more_invalid0/source.py): out of date
_read_pyc(/tmp/pytest-of-swe-bench/pytest-0/test_read_pyc_more_invalid0/source.py): invalid pyc (incorrect size)
____________ TestAssertionRewrite.test_rewrites_plugin_as_a_package ____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_rewrites_plugin_as_a_package0
collected 1 item
test_rewrites_plugin_as_a_package.py F [100%]
=================================== FAILURES ===================================
_____________________________________ test _____________________________________
special_asserter = <function special_asserter.<locals>.special_assert at 0x758015843670>
> def test(special_asserter): special_asserter(1, 2)
test_rewrites_plugin_as_a_package.py:1:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = 1, y = 2
def special_assert(x, y):
> assert x == y
E assert 1 == 2
plugin/__init__.py:5: AssertionError
=========================== short test summary info ============================
FAILED test_rewrites_plugin_as_a_package.py::test - assert 1 == 2
============================== 1 failed in 0.02s ===============================
___________________ TestAssertionRewrite.test_honors_pep_235 ___________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_honors_pep_2350
collected 1 item
test_honors_pep_235.py . [100%]
============================== 1 passed in 0.02s ===============================
_________________ TestAssertionRewrite.test_assertion_message __________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_message0
collected 1 item
test_assertion_message.py F [100%]
=================================== FAILURES ===================================
___________________________________ test_foo ___________________________________
def test_foo():
> assert 1 == 2, "The failure message"
E AssertionError: The failure message
E assert 1 == 2
test_assertion_message.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_message.py::test_foo - AssertionError: The failure message
============================== 1 failed in 0.01s ===============================
____________ TestAssertionRewrite.test_assertion_message_multiline _____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_message_multiline0
collected 1 item
test_assertion_message_multiline.py F [100%]
=================================== FAILURES ===================================
___________________________________ test_foo ___________________________________
def test_foo():
> assert 1 == 2, "A multiline\nfailure message"
E AssertionError: A multiline
E failure message
E assert 1 == 2
test_assertion_message_multiline.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_message_multiline.py::test_foo - AssertionError: A mult...
============================== 1 failed in 0.01s ===============================
______________ TestAssertionRewrite.test_assertion_message_tuple _______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_message_tuple0
collected 1 item
test_assertion_message_tuple.py F [100%]
=================================== FAILURES ===================================
___________________________________ test_foo ___________________________________
def test_foo():
> assert 1 == 2, (1, 2)
E AssertionError: (1, 2)
E assert 1 == 2
test_assertion_message_tuple.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_message_tuple.py::test_foo - AssertionError: (1, 2)
============================== 1 failed in 0.01s ===============================
_______________ TestAssertionRewrite.test_assertion_message_expr _______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_message_expr0
collected 1 item
test_assertion_message_expr.py F [100%]
=================================== FAILURES ===================================
___________________________________ test_foo ___________________________________
def test_foo():
> assert 1 == 2, 1 + 2
E AssertionError: 3
E assert 1 == 2
test_assertion_message_expr.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_message_expr.py::test_foo - AssertionError: 3
============================== 1 failed in 0.01s ===============================
______________ TestAssertionRewrite.test_assertion_message_escape ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_message_escape0
collected 1 item
test_assertion_message_escape.py F [100%]
=================================== FAILURES ===================================
___________________________________ test_foo ___________________________________
def test_foo():
> assert 1 == 2, 'To be escaped: %'
E AssertionError: To be escaped: %
E assert 1 == 2
test_assertion_message_escape.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_message_escape.py::test_foo - AssertionError: To be esc...
============================== 1 failed in 0.02s ===============================
______________ TestAssertionRewrite.test_assertion_messages_bytes ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_messages_bytes0
collected 1 item
test_assertion_messages_bytes.py F [100%]
=================================== FAILURES ===================================
_____________________________ test_bytes_assertion _____________________________
def test_bytes_assertion():
> assert False, b'ohai!'
E AssertionError: b'ohai!'
E assert False
test_assertion_messages_bytes.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_messages_bytes.py::test_bytes_assertion - AssertionErro...
============================== 1 failed in 0.01s ===============================
_______________ TestAssertionRewrite.test_at_operator_issue1290 ________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_at_operator_issue12900
collected 1 item
test_at_operator_issue1290.py . [100%]
============================== 1 passed in 0.01s ===============================
______________ TestAssertionRewrite.test_starred_with_side_effect ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_starred_with_side_effect0
collected 1 item
test_starred_with_side_effect.py . [100%]
============================== 1 passed in 0.01s ===============================
__________________ TestRewriteOnImport.test_pycache_is_a_file __________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_pycache_is_a_file0
collected 1 item
test_pycache_is_a_file.py . [100%]
============================== 1 passed in 0.01s ===============================
_________________ TestRewriteOnImport.test_pycache_is_readonly _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_pycache_is_readonly0
collected 1 item
test_pycache_is_readonly.py . [100%]
============================== 1 passed in 0.02s ===============================
_______________________ TestRewriteOnImport.test_zipfile _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_zipfile0
collected 0 items
============================ no tests ran in 0.02s =============================
________ TestRewriteOnImport.test_load_resource_via_files_with_rewrite _________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0 -- /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_load_resource_via_files_with_rewrite0
collecting ... collected 1 item
test_load.py::test_load PASSED [100%]
============================== 1 passed in 0.02s ===============================
______________________ TestRewriteOnImport.test_readonly _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_readonly0
collected 1 item
testing/test_readonly.py . [100%]
============================== 1 passed in 0.01s ===============================
__________________ TestRewriteOnImport.test_orphaned_pyc_file __________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_orphaned_pyc_file0
collected 1 item
test_orphaned_pyc_file.py . [100%]
============================== 1 passed in 0.01s ===============================
_______________________ TestRewriteOnImport.test_package _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_package0
collected 1 item
pkg/test_blah.py . [100%]
============================== 1 passed in 0.01s ===============================
_________________ TestRewriteOnImport.test_translate_newlines __________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_translate_newlines0
collected 1 item
test_newlines.py . [100%]
============================== 1 passed in 0.01s ===============================
______________ TestRewriteOnImport.test_package_without__init__py ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_package_without__init__py0
collected 0 items
============================ no tests ran in 0.01s =============================
__________ TestAssertionRewriteHookDetails.test_sys_meta_path_munged ___________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_sys_meta_path_munged0
collected 1 item
test_sys_meta_path_munged.py . [100%]
============================== 1 passed in 0.01s ===============================
_______ TestAssertionRewriteHookDetails.test_reload_is_same_and_reloads ________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_reload_is_same_and_reloads0
configfile: tox.ini
collected 1 item
test_fun.py . [100%]
============================== 1 passed in 0.01s ===============================
____________ TestAssertionRewriteHookDetails.test_get_data_support _____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_get_data_support0
collected 1 item
foo/test_foo.py . [100%]
============================== 1 passed in 0.01s ===============================
________________________________ test_issue731 _________________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_issue7310
collected 1 item
test_issue731.py F [100%]
=================================== FAILURES ===================================
________________________________ test_long_repr ________________________________
def test_long_repr():
obj = LongReprWithBraces()
> assert obj.some_method()
E assert False
E + where False = <bound method LongReprWithBraces.some_method of LongReprWithBraces({aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)>()
E + where <bound method LongReprWithBraces.some_method of LongReprWithBraces({aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)> = LongReprWithBraces({aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa).some_method
test_issue731.py:10: AssertionError
=========================== short test summary info ============================
FAILED test_issue731.py::test_long_repr - assert False
============================== 1 failed in 0.01s ===============================
________________________ TestIssue925.test_simple_case _________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_simple_case0
collected 1 item
test_simple_case.py F [100%]
=================================== FAILURES ===================================
_____________________________ test_ternary_display _____________________________
def test_ternary_display():
> assert (False == False) == False
E assert (False == False) == False
test_simple_case.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_simple_case.py::test_ternary_display - assert (False == False) ==...
============================== 1 failed in 0.01s ===============================
_________________________ TestIssue925.test_long_case __________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_long_case0
collected 1 item
test_long_case.py F [100%]
=================================== FAILURES ===================================
_____________________________ test_ternary_display _____________________________
def test_ternary_display():
> assert False == (False == True) == True
E assert (False == True) == True
test_long_case.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_long_case.py::test_ternary_display - assert (False == True) == True
============================== 1 failed in 0.01s ===============================
_______________________ TestIssue925.test_many_brackets ________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_many_brackets0
collected 1 item
test_many_brackets.py F [100%]
=================================== FAILURES ===================================
_____________________________ test_ternary_display _____________________________
def test_ternary_display():
> assert True == ((False == True) == True)
E assert True == ((False == True) == True)
test_many_brackets.py:2: AssertionError
=========================== short test summary info ============================
FAILED test_many_brackets.py::test_ternary_display - assert True == ((False =...
============================== 1 failed in 0.01s ===============================
___________ TestIssue2121.test_rewrite_python_files_contain_subdirs ____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_rewrite_python_files_contain_subdirs0
configfile: tox.ini
collected 1 item
tests/file.py F [100%]
=================================== FAILURES ===================================
_____________________________ test_simple_failure ______________________________
def test_simple_failure():
> assert 1 + 1 == 3
E assert (1 + 1) == 3
tests/file.py:2: AssertionError
=========================== short test summary info ============================
FAILED tests/file.py::test_simple_failure - assert (1 + 1) == 3
============================== 1 failed in 0.01s ===============================
________________ TestIssue10743.test_assertion_walrus_operator _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator0
collected 1 item
test_assertion_walrus_operator.py . [100%]
============================== 1 passed in 0.01s ===============================
__________ TestIssue10743.test_assertion_walrus_operator_dont_rewrite __________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_dont_rewrite0
collected 1 item
test_assertion_walrus_operator_dont_rewrite.py . [100%]
============================== 1 passed in 0.01s ===============================
_____________ TestIssue10743.test_assertion_inline_walrus_operator _____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_inline_walrus_operator0
collected 1 item
test_assertion_inline_walrus_operator.py . [100%]
============================== 1 passed in 0.01s ===============================
_________ TestIssue10743.test_assertion_inline_walrus_operator_reverse _________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_inline_walrus_operator_reverse0
collected 1 item
test_assertion_inline_walrus_operator_reverse.py . [100%]
============================== 1 passed in 0.01s ===============================
________ TestIssue10743.test_assertion_walrus_no_variable_name_conflict ________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_no_variable_name_conflict0
collected 1 item
test_assertion_walrus_no_variable_name_conflict.py F [100%]
=================================== FAILURES ===================================
______________________ test_walrus_conversion_no_conflict ______________________
def test_walrus_conversion_no_conflict():
a = "Hello"
> assert a == (b := a.lower())
E AssertionError: assert 'Hello' == 'hello'
E - hello
E ? ^
E + Hello
E ? ^
test_assertion_walrus_no_variable_name_conflict.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_walrus_no_variable_name_conflict.py::test_walrus_conversion_no_conflict
============================== 1 failed in 0.01s ===============================
_ TestIssue10743.test_assertion_walrus_operator_true_assertion_and_changes_variable_value _
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_true_assertion_and_changes_variable_value0
collected 1 item
test_assertion_walrus_operator_true_assertion_and_changes_variable_value.py . [100%]
============================== 1 passed in 0.01s ===============================
_________ TestIssue10743.test_assertion_walrus_operator_fail_assertion _________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_fail_assertion0
collected 1 item
test_assertion_walrus_operator_fail_assertion.py F [100%]
=================================== FAILURES ===================================
_________________________ test_walrus_conversion_fails _________________________
def test_walrus_conversion_fails():
a = "Hello"
> assert a == (a := a.lower())
E AssertionError: assert 'Hello' == 'hello'
E - hello
E ? ^
E + Hello
E ? ^
test_assertion_walrus_operator_fail_assertion.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_walrus_operator_fail_assertion.py::test_walrus_conversion_fails
============================== 1 failed in 0.01s ===============================
_______ TestIssue10743.test_assertion_walrus_operator_boolean_composite ________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_boolean_composite0
collected 1 item
test_assertion_walrus_operator_boolean_composite.py . [100%]
============================== 1 passed in 0.01s ===============================
_____ TestIssue10743.test_assertion_walrus_operator_compare_boolean_fails ______
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_compare_boolean_fails0
collected 1 item
test_assertion_walrus_operator_compare_boolean_fails.py F [100%]
=================================== FAILURES ===================================
__________________ test_walrus_operator_change_boolean_value ___________________
def test_walrus_operator_change_boolean_value():
a = True
> assert not (a and ((a := False) is False))
E assert not (True and False is False)
test_assertion_walrus_operator_compare_boolean_fails.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_walrus_operator_compare_boolean_fails.py::test_walrus_operator_change_boolean_value
============================== 1 failed in 0.01s ===============================
_______ TestIssue10743.test_assertion_walrus_operator_boolean_none_fails _______
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_boolean_none_fails0
collected 1 item
test_assertion_walrus_operator_boolean_none_fails.py F [100%]
=================================== FAILURES ===================================
__________________ test_walrus_operator_change_boolean_value ___________________
def test_walrus_operator_change_boolean_value():
a = True
> assert not (a and ((a := None) is None))
E assert not (True and None is None)
test_assertion_walrus_operator_boolean_none_fails.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_walrus_operator_boolean_none_fails.py::test_walrus_operator_change_boolean_value
============================== 1 failed in 0.01s ===============================
_ TestIssue10743.test_assertion_walrus_operator_value_changes_cleared_after_each_test _
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_value_changes_cleared_after_each_test0
collected 2 items
test_assertion_walrus_operator_value_changes_cleared_after_each_test.py . [ 50%]
. [100%]
============================== 2 passed in 0.01s ===============================
___________ TestIssue11028.test_assertion_walrus_operator_in_operand ___________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_in_operand0
collected 1 item
test_assertion_walrus_operator_in_operand.py . [100%]
============================== 1 passed in 0.00s ===============================
_____ TestIssue11028.test_assertion_walrus_operator_in_operand_json_dumps ______
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_in_operand_json_dumps0
collected 1 item
test_assertion_walrus_operator_in_operand_json_dumps.py . [100%]
============================== 1 passed in 0.00s ===============================
____ TestIssue11028.test_assertion_walrus_operator_equals_operand_function _____
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_equals_operand_function0
collected 1 item
test_assertion_walrus_operator_equals_operand_function.py . [100%]
============================== 1 passed in 0.01s ===============================
_ TestIssue11028.test_assertion_walrus_operator_equals_operand_function_keyword_arg _
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_equals_operand_function_keyword_arg0
collected 1 item
test_assertion_walrus_operator_equals_operand_function_keyword_arg.py . [100%]
============================== 1 passed in 0.00s ===============================
_ TestIssue11028.test_assertion_walrus_operator_equals_operand_function_arg_as_function _
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_equals_operand_function_arg_as_function0
collected 1 item
test_assertion_walrus_operator_equals_operand_function_arg_as_function.py . [100%]
============================== 1 passed in 0.00s ===============================
______ TestIssue11028.test_assertion_walrus_operator_gt_operand_function _______
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_assertion_walrus_operator_gt_operand_function0
collected 1 item
test_assertion_walrus_operator_gt_operand_function.py F [100%]
=================================== FAILURES ===================================
___________________________________ test_gt ____________________________________
def test_gt():
> assert (obj := 4) > add_one(obj)
E assert 4 > 5
E + where 5 = add_one(4)
test_assertion_walrus_operator_gt_operand_function.py:5: AssertionError
=========================== short test summary info ============================
FAILED test_assertion_walrus_operator_gt_operand_function.py::test_gt - asser...
============================== 1 failed in 0.01s ===============================
_______________________ test_source_mtime_long_long[-1] ________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_source_mtime_long_long0
collected 1 item
test_source_mtime_long_long.py . [100%]
============================== 1 passed in 0.00s ===============================
________________________ test_source_mtime_long_long[1] ________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_source_mtime_long_long1
collected 1 item
test_source_mtime_long_long.py . [100%]
============================== 1 passed in 0.00s ===============================
___________________ TestEarlyRewriteBailout.test_cwd_changed ___________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_cwd_changed0
collected 1 item
test_test.py . [100%]
============================== 1 passed in 0.01s ===============================
_______________________ TestAssertionPass.test_hook_call _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_hook_call0
configfile: tox.ini
collected 2 items
test_hook_call.py FF [100%]
=================================== FAILURES ===================================
_________________________________ test_simple __________________________________
def test_simple():
a=1
b=2
c=3
d=0
> assert a+b == c+d
test_hook_call.py:7:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/swe-bench/pytest-dev__pytest/src/_pytest/assertion/rewrite.py:488: in _call_assertion_pass
util._assertion_pass(lineno, orig, expl)
/home/swe-bench/pytest-dev__pytest/src/_pytest/assertion/__init__.py:161: in call_assertion_pass_hook
ihook.pytest_assertion_pass(item=item, lineno=lineno, orig=orig, expl=expl)
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_hooks.py:493: in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_manager.py:115: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_manager.py:457: in traced_hookexec
return outcome.get_result()
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_manager.py:454: in <lambda>
lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function test_simple>, lineno = 7, orig = 'a+b == c+d'
expl = '(1 + 2) == (3 + 0)'
def pytest_assertion_pass(item, lineno, orig, expl):
> raise Exception("Assertion Passed: {} {} at line {}".format(orig, expl, lineno))
E Exception: Assertion Passed: a+b == c+d (1 + 2) == (3 + 0) at line 7
conftest.py:2: Exception
__________________________________ test_fails __________________________________
def test_fails():
> assert False, "assert with message"
E assert with message
E assert False
test_hook_call.py:11: AssertionError
=========================== short test summary info ============================
FAILED test_hook_call.py::test_simple - Exception: Assertion Passed: a+b == c...
FAILED test_hook_call.py::test_fails - assert with message
============================== 2 failed in 0.07s ===============================
_________________ TestAssertionPass.test_hook_call_with_parens _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_hook_call_with_parens0
configfile: tox.ini
collected 1 item
test_hook_call_with_parens.py F [100%]
=================================== FAILURES ===================================
_____________________________________ test _____________________________________
def test():
> assert f()
test_hook_call_with_parens.py:3:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/swe-bench/pytest-dev__pytest/src/_pytest/assertion/rewrite.py:488: in _call_assertion_pass
util._assertion_pass(lineno, orig, expl)
/home/swe-bench/pytest-dev__pytest/src/_pytest/assertion/__init__.py:161: in call_assertion_pass_hook
ihook.pytest_assertion_pass(item=item, lineno=lineno, orig=orig, expl=expl)
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_hooks.py:493: in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_manager.py:115: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_manager.py:457: in traced_hookexec
return outcome.get_result()
/home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/lib/python3.9/site-packages/pluggy/_manager.py:454: in <lambda>
lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function test>, lineno = 3, orig = 'f()', expl = '1\n + where 1 = f()'
def pytest_assertion_pass(item, lineno, orig, expl):
> raise Exception("Assertion Passed: {} {} at line {}".format(orig, expl, lineno))
E Exception: Assertion Passed: f() 1
E + where 1 = f() at line 3
conftest.py:2: Exception
=========================== short test summary info ============================
FAILED test_hook_call_with_parens.py::test - Exception: Assertion Passed: f() 1
============================== 1 failed in 0.06s ===============================
___________ TestAssertionPass.test_hook_not_called_without_hookimpl ____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_hook_not_called_without_hookimpl0
configfile: tox.ini
collected 1 item
test_hook_not_called_without_hookimpl.py . [100%]
============================== 1 passed in 0.01s ===============================
__________ TestAssertionPass.test_hook_not_called_without_cmd_option ___________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_hook_not_called_without_cmd_option0
collected 1 item
test_hook_not_called_without_cmd_option.py . [100%]
============================== 1 passed in 0.01s ===============================
______________ TestPyCacheDir.test_sys_pycache_prefix_integration ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_sys_pycache_prefix_integration0
collected 1 item
src/test_foo.py . [100%]
============================== 1 passed in 0.01s ===============================
_________________ TestReprSizeVerbosity.test_default_verbosity _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_default_verbosity0
collected 1 item
test_default_verbosity.py F [100%]
=================================== FAILURES ===================================
____________________________ test_very_long_string _____________________________
def test_very_long_string():
text = "x" * 240
> assert "hello world" in text
E AssertionError: assert 'hello world' in 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
test_default_verbosity.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_default_verbosity.py::test_very_long_string - AssertionError: ass...
============================== 1 failed in 0.01s ===============================
________________ TestReprSizeVerbosity.test_increased_verbosity ________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0 -- /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_increased_verbosity0
collecting ... collected 1 item
test_increased_verbosity.py::test_very_long_string FAILED [100%]
=================================== FAILURES ===================================
____________________________ test_very_long_string _____________________________
def test_very_long_string():
text = "x" * 240
> assert "hello world" in text
E AssertionError: assert 'hello world' in 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
test_increased_verbosity.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_increased_verbosity.py::test_very_long_string - AssertionError: a...
============================== 1 failed in 0.01s ===============================
______________ TestReprSizeVerbosity.test_max_increased_verbosity ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0 -- /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_max_increased_verbosity0
collecting ... collected 1 item
test_max_increased_verbosity.py::test_very_long_string FAILED [100%]
=================================== FAILURES ===================================
____________________________ test_very_long_string _____________________________
def test_very_long_string():
text = "x" * 2400
> assert "hello world" in text
E AssertionError: assert 'hello world' in 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
test_max_increased_verbosity.py:3: AssertionError
=========================== short test summary info ============================
FAILED test_max_increased_verbosity.py::test_very_long_string - AssertionErro...
============================== 1 failed in 0.01s ===============================
_________ TestIssue11140.test_constant_not_picked_as_module_docstring __________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_constant_not_picked_as_module_docstring0
collected 1 item
test_constant_not_picked_as_module_docstring.py . [100%]
============================== 1 passed in 0.00s ===============================
________________ TestAssertionRewrite.test_dont_rewrite_plugin _________________
----------------------------- Captured stdout call -----------------------------
running: /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python -mpytest --basetemp=/tmp/pytest-of-swe-bench/pytest-0/test_dont_rewrite_plugin0/runpytest-0
in: /tmp/pytest-of-swe-bench/pytest-0/test_dont_rewrite_plugin0
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_dont_rewrite_plugin0
collected 1 item
test_foo.py . [100%]
============================== 1 passed in 0.01s ===============================
_________________ TestRewriteOnImport.test_dont_write_bytecode _________________
----------------------------- Captured stdout call -----------------------------
running: /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python -mpytest --basetemp=/tmp/pytest-of-swe-bench/pytest-0/test_dont_write_bytecode0/runpytest-0
in: /tmp/pytest-of-swe-bench/pytest-0/test_dont_write_bytecode0
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_dont_write_bytecode0
collected 1 item
test_dont_write_bytecode.py . [100%]
============================== 1 passed in 0.01s ===============================
_________ TestRewriteOnImport.test_cached_pyc_includes_pytest_version __________
----------------------------- Captured stdout call -----------------------------
running: /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python -mpytest --basetemp=/tmp/pytest-of-swe-bench/pytest-0/test_cached_pyc_includes_pytest_version0/runpytest-0
in: /tmp/pytest-of-swe-bench/pytest-0/test_cached_pyc_includes_pytest_version0
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_cached_pyc_includes_pytest_version0
collected 1 item
test_foo.py . [100%]
============================== 1 passed in 0.01s ===============================
_____________________ TestRewriteOnImport.test_pyc_vs_pyo ______________________
----------------------------- Captured stdout call -----------------------------
running: /home/swe-bench/miniconda3/envs/pytest-dev__pytest__8.0/bin/python -mpytest --basetemp=/tmp/pytest-of-swe-bench/pytest-0/test_pyc_vs_pyo0/runpytest-1 --basetemp=/tmp/pytest-of-swe-bench/pytest-0/test_pyc_vs_pyo0/runpytest-0
in: /tmp/pytest-of-swe-bench/pytest-0/test_pyc_vs_pyo0
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.0.0.dev160+g10056865d, pluggy-1.3.0
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_pyc_vs_pyo0
collected 1 item
test_pyc_vs_pyo.py . [100%]