-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-11019.gpt-4-0125-preview.eval.log
662 lines (619 loc) · 41.1 KB
/
django__django-11019.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
[django__django__3.0] [django__django-11019] Task Metadata:
- Instance ID: django__django-11019
- Testbed: django__django__3.0
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.0] [django__django-11019] Command: git -c advice.detachedHead=false checkout 93e892bb645b16ebaf287beb5fe7f3ffe8d10408
[django__django__3.0] [django__django-11019] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11019] Std. Output:
Previous HEAD position was 419a78300f [3.0.x] Fixed typo in docs/ref/contrib/postgres/forms.txt.
HEAD is now at 93e892bb64 Refs #29523 -- Updated admin's collapse.min.js.
[django__django__3.0] [django__django-11019] Return Code: 0
[django__django__3.0] [django__django-11019] Command: git apply -v /opt/temp_django__django-11019_pred_try.patch
[django__django__3.0] [django__django-11019] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11019] Std. Output:
Checking patch django/forms/widgets.py...
Applied patch django/forms/widgets.py cleanly.
[django__django__3.0] [django__django-11019] Return Code: 0
[django__django__3.0] [django__django-11019] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.0] [django__django-11019] Command: git apply -v -R /opt/temp_django__django-11019_pred_try.patch
[django__django__3.0] [django__django-11019] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11019] Std. Output:
Checking patch django/forms/widgets.py...
Applied patch django/forms/widgets.py cleanly.
[django__django__3.0] [django__django-11019] Return Code: 0
[django__django__3.0] [django__django-11019] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.0] [django__django-11019] Command: git apply -v /opt/temp_django__django-11019_pred.patch
[django__django__3.0] [django__django-11019] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11019] Std. Output:
Checking patch django/forms/widgets.py...
Applied patch django/forms/widgets.py cleanly.
[django__django__3.0] [django__django-11019] Return Code: 0
[django__django__3.0] [django__django-11019] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.0] [django__django-11019] Command: git apply -v /opt/temp_django__django-11019_test.patch
[django__django__3.0] [django__django-11019] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11019] Std. Output:
Checking patch tests/admin_inlines/tests.py...
Checking patch tests/admin_widgets/test_autocomplete_widget.py...
Checking patch tests/forms_tests/tests/test_media.py...
Applied patch tests/admin_inlines/tests.py cleanly.
Applied patch tests/admin_widgets/test_autocomplete_widget.py cleanly.
Applied patch tests/forms_tests/tests/test_media.py cleanly.
[django__django__3.0] [django__django-11019] Return Code: 0
[django__django__3.0] [django__django-11019] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 admin_inlines.tests admin_widgets.test_autocomplete_widget forms_tests.tests.test_media;
[django__django__3.0] [django__django-11019] Command: ./tests/runtests.py --verbosity 2 admin_inlines.tests admin_widgets.test_autocomplete_widget forms_tests.tests.test_media
[django__django__3.0] [django__django-11019] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__3.0] [django__django-11019] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application admin_inlines
Importing application admin_widgets
Importing application forms_tests
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: admin_inlines, admin_widgets, auth, contenttypes, forms_tests, messages, sessions, staticfiles
Apply all migrations: admin, sites
Synchronizing apps without migrations:
Creating tables...
Creating table django_content_type
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table django_session
Creating table admin_inlines_parent
Creating table admin_inlines_teacher
Creating table admin_inlines_child
Creating table admin_inlines_book
Creating table admin_inlines_author
Creating table admin_inlines_nonautopkbook
Creating table admin_inlines_nonautopkbookchild
Creating table admin_inlines_editablepkbook
Creating table admin_inlines_holder
Creating table admin_inlines_inner
Creating table admin_inlines_holder2
Creating table admin_inlines_inner2
Creating table admin_inlines_holder3
Creating table admin_inlines_inner3
Creating table admin_inlines_holder4
Creating table admin_inlines_inner4stacked
Creating table admin_inlines_inner4tabular
Creating table admin_inlines_person
Creating table admin_inlines_outfititem
Creating table admin_inlines_fashionista
Creating table admin_inlines_shoppingweakness
Creating table admin_inlines_titlecollection
Creating table admin_inlines_title
Creating table admin_inlines_poll
Creating table admin_inlines_question
Creating table admin_inlines_novel
Creating table admin_inlines_chapter
Creating table admin_inlines_footnote
Creating table admin_inlines_capofamiglia
Creating table admin_inlines_consigliere
Creating table admin_inlines_sottocapo
Creating table admin_inlines_readonlyinline
Creating table admin_inlines_parentmodelwithcustompk
Creating table admin_inlines_childmodel1
Creating table admin_inlines_childmodel2
Creating table admin_inlines_binarytree
Creating table admin_inlines_lifeform
Creating table admin_inlines_extraterrestrial
Creating table admin_inlines_sighting
Creating table admin_inlines_someparentmodel
Creating table admin_inlines_somechildmodel
Creating table admin_inlines_profilecollection
Creating table admin_inlines_profile
Creating table admin_widgets_member
Creating table admin_widgets_band
Creating table admin_widgets_album
Creating table admin_widgets_inventory
Creating table admin_widgets_event
Creating table admin_widgets_car
Creating table admin_widgets_cartire
Creating table admin_widgets_honeycomb
Creating table admin_widgets_bee
Creating table admin_widgets_individual
Creating table admin_widgets_company
Creating table admin_widgets_advisor
Creating table admin_widgets_student
Creating table admin_widgets_school
Creating table admin_widgets_profile
Creating table forms_tests_boundarymodel
Creating table forms_tests_defaults
Creating table forms_tests_choicemodel
Creating table forms_tests_choiceoptionmodel
Creating table forms_tests_choicefieldmodel
Creating table forms_tests_optionalmultichoicemodel
Creating table forms_tests_filemodel
Creating table forms_tests_article
Running deferred SQL...
Running migrations:
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
System check identified no issues (0 silenced).
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
test_add_inlines (admin_inlines.tests.SeleniumTests) ... skipped 'No browsers specified.'
test_add_stackeds (admin_inlines.tests.SeleniumTests) ... skipped 'No browsers specified.'
test_alternating_rows (admin_inlines.tests.SeleniumTests) ... skipped 'No browsers specified.'
test_collapsed_inlines (admin_inlines.tests.SeleniumTests) ... skipped 'No browsers specified.'
test_delete_inlines (admin_inlines.tests.SeleniumTests) ... skipped 'No browsers specified.'
test_delete_stackeds (admin_inlines.tests.SeleniumTests) ... skipped 'No browsers specified.'
test_immutable_content_type (admin_inlines.tests.TestInlineAdminForm)
Regression for #9362 ... ok
test_combine_media (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_construction (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_form_media (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_html_safe (forms_tests.tests.test_media.FormsMediaTestCase) ... ok
test_media_deduplication (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_media_dsl (forms_tests.tests.test_media.FormsMediaTestCase) ... ok
test_media_inheritance (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_media_inheritance_extends (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_media_inheritance_from_property (forms_tests.tests.test_media.FormsMediaTestCase) ... ok
test_media_inheritance_single_type (forms_tests.tests.test_media.FormsMediaTestCase) ... ok
test_media_property (forms_tests.tests.test_media.FormsMediaTestCase) ... ok
test_media_property_parent_references (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_merge (forms_tests.tests.test_media.FormsMediaTestCase) ... test_merge_css_three_way (forms_tests.tests.test_media.FormsMediaTestCase) ... ERROR
test_merge_js_three_way (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_merge_js_three_way2 (forms_tests.tests.test_media.FormsMediaTestCase) ... ERROR
test_merge_warning (forms_tests.tests.test_media.FormsMediaTestCase) ... ERROR
test_multi_media (forms_tests.tests.test_media.FormsMediaTestCase) ... ok
test_multi_widget (forms_tests.tests.test_media.FormsMediaTestCase) ... FAIL
test_build_attrs (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... ok
test_build_attrs_no_custom_class (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... ok
test_build_attrs_not_required_field (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... ok
test_build_attrs_required_field (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... ok
test_get_url (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... ok
test_media (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... test_render_options (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) ... ok
test_render_options_not_required_field (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests)
Empty option isn't present if the field isn't required. ... ok
test_render_options_required_field (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests)
Empty option is present if the field isn't required. ... ok
test_deleting_inline_with_protected_delete_does_not_validate (admin_inlines.tests.TestInlineProtectedOnDelete) ... ok
test_all_inline_media (admin_inlines.tests.TestInlineMedia) ... ok
test_inline_media_only_base (admin_inlines.tests.TestInlineMedia) ... ok
test_inline_media_only_inline (admin_inlines.tests.TestInlineMedia) ... FAIL
test_inline_add_fk_add_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_add_fk_noperm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_add_m2m_add_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_add_m2m_noperm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_fk_add_change_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_fk_add_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_fk_all_perms (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_fk_change_del_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_fk_change_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_fk_noperm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_m2m_add_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_m2m_change_perm (admin_inlines.tests.TestInlinePermissions) ... ok
test_inline_change_m2m_noperm (admin_inlines.tests.TestInlinePermissions) ... ok
test_callable_lookup (admin_inlines.tests.TestInline)
Admin inline should invoke local callable when its name is listed in readonly_fields ... ok
test_can_delete (admin_inlines.tests.TestInline) ... ok
test_create_inlines_on_inherited_model (admin_inlines.tests.TestInline) ... ok
test_custom_form_tabular_inline_label (admin_inlines.tests.TestInline) ... ok
test_custom_form_tabular_inline_overridden_label (admin_inlines.tests.TestInline) ... ok
test_custom_get_extra_form (admin_inlines.tests.TestInline) ... ok
test_custom_min_num (admin_inlines.tests.TestInline) ... ok
test_custom_pk_shortcut (admin_inlines.tests.TestInline) ... ok
test_help_text (admin_inlines.tests.TestInline) ... ok
test_inline_editable_pk (admin_inlines.tests.TestInline) ... ok
test_inline_hidden_field_no_column (admin_inlines.tests.TestInline)
#18263 -- Make sure hidden fields don't get a column in tabular inlines ... ok
test_inline_nonauto_noneditable_inherited_pk (admin_inlines.tests.TestInline) ... ok
test_inline_nonauto_noneditable_pk (admin_inlines.tests.TestInline) ... ok
test_inline_primary (admin_inlines.tests.TestInline) ... ok
test_inlines_show_change_link_registered (admin_inlines.tests.TestInline)
Inlines `show_change_link` for registered models when enabled. ... ok
test_inlines_show_change_link_unregistered (admin_inlines.tests.TestInline)
Inlines `show_change_link` disabled for unregistered models. ... ok
test_localize_pk_shortcut (admin_inlines.tests.TestInline) ... ok
test_many_to_many_inlines (admin_inlines.tests.TestInline)
Autogenerated many-to-many inlines are displayed correctly (#13407) ... ok
test_min_num (admin_inlines.tests.TestInline) ... ok
test_no_parent_callable_lookup (admin_inlines.tests.TestInline)
Admin inline `readonly_field` shouldn't invoke parent ModelAdmin callable ... ok
test_non_related_name_inline (admin_inlines.tests.TestInline) ... ok
test_noneditable_inline_has_field_inputs (admin_inlines.tests.TestInline)
Inlines without change permission shows field inputs on add form. ... ok
test_readonly_stacked_inline_label (admin_inlines.tests.TestInline)
Bug #13174. ... ok
test_stacked_inline_edit_form_contains_has_original_class (admin_inlines.tests.TestInline) ... ok
test_tabular_inline_column_css_class (admin_inlines.tests.TestInline) ... ok
test_tabular_inline_show_change_link_false_registered (admin_inlines.tests.TestInline)
Inlines `show_change_link` disabled by default. ... ok
test_tabular_model_form_meta_readonly_field (admin_inlines.tests.TestInline) ... ok
test_tabular_non_field_errors (admin_inlines.tests.TestInline) ... ok
======================================================================
ERROR: test_merge (forms_tests.tests.test_media.FormsMediaTestCase) [<object object at 0x7bb6d8d28f50>] (lists=[[1, 2], [1, 3], [2, 3], [5, 7], [5, 6], [6, 7, 9], [8, 9]])
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 553, in test_merge
self.assertEqual(Media.merge(*lists), expected)
TypeError: merge() takes 2 positional arguments but 7 were given
======================================================================
ERROR: test_merge (forms_tests.tests.test_media.FormsMediaTestCase) [<object object at 0x7bb6d8d28f50>] (lists=())
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 553, in test_merge
self.assertEqual(Media.merge(*lists), expected)
TypeError: merge() missing 2 required positional arguments: 'list_1' and 'list_2'
======================================================================
ERROR: test_merge (forms_tests.tests.test_media.FormsMediaTestCase) [<object object at 0x7bb6d8d28f50>] (lists=([1, 2],))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 553, in test_merge
self.assertEqual(Media.merge(*lists), expected)
TypeError: merge() missing 1 required positional argument: 'list_2'
======================================================================
ERROR: test_merge_css_three_way (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 590, in test_merge_css_three_way
self.assertEqual(merged._css, {'screen': ['a.css', 'b.css', 'c.css'], 'all': ['d.css', 'e.css']})
File "/opt/django__django/django/forms/widgets.py", line 67, in _css
for medium in css.keys() | obj.keys()
File "/opt/django__django/django/forms/widgets.py", line 67, in <dictcomp>
for medium in css.keys() | obj.keys()
File "/opt/django__django/django/forms/widgets.py", line 145, in merge
MediaOrderConflictWarning,
django.forms.widgets.MediaOrderConflictWarning: Detected duplicate Media files in an opposite order:
b.css
a.css
======================================================================
ERROR: test_merge_js_three_way2 (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 578, in test_merge_js_three_way2
self.assertEqual(merged._js, ['a', 'b', 'c', 'f', 'g', 'h', 'k'])
File "/opt/django__django/django/forms/widgets.py", line 76, in _js
js = self.merge(js, obj)
File "/opt/django__django/django/forms/widgets.py", line 145, in merge
MediaOrderConflictWarning,
django.forms.widgets.MediaOrderConflictWarning: Detected duplicate Media files in an opposite order:
c
b
======================================================================
ERROR: test_merge_warning (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 558, in test_merge_warning
self.assertEqual(Media.merge([1, 2], [2, 1]), [1, 2])
File "/opt/django__django/django/forms/widgets.py", line 141, in merge
if index > last_insert_index and not (path.endswith('.js') and combined_list[last_insert_index].endswith('.js')):
AttributeError: 'int' object has no attribute 'endswith'
======================================================================
FAIL: test_combine_media (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 129, in test_combine_media
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>"""
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[424 chars]src="https://secure.other.com/path/to/js3"></s[63 chars]ipt>' != '<lin[424 chars]src="/path/to/js4"></script>\n<script type="te[63 chars]ipt>'
======================================================================
FAIL: test_construction (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 28, in test_construction
"Media(css={'all': ['path/to/css1', '/path/to/css2']}, "
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1203, in assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: "Media(css={'all': ('path/to/css1', '/path/to/css2')}, js=('[89 chars]3'))" != "Media(css={'all': ['path/to/css1', '/path/to/css2']}, js=['[89 chars]3'])"
- Media(css={'all': ('path/to/css1', '/path/to/css2')}, js=('/path/to/js1', 'http://media.other.com/path/to/js2', 'https://secure.other.com/path/to/js3'))
? ^ ^ ^ ^
+ Media(css={'all': ['path/to/css1', '/path/to/css2']}, js=['/path/to/js1', 'http://media.other.com/path/to/js2', 'https://secure.other.com/path/to/js3'])
? ^ ^ ^ ^
======================================================================
FAIL: test_form_media (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 477, in test_form_media
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>"""
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[424 chars]src="https://secure.other.com/path/to/js3"></s[63 chars]ipt>' != '<lin[424 chars]src="/path/to/js4"></script>\n<script type="te[63 chars]ipt>'
======================================================================
FAIL: test_media_deduplication (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 163, in test_media_deduplication
<script type="text/javascript" src="/path/to/js1"></script>""")
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[66 chars]">\n<link href="/path/to/css1" type="text/css"[148 chars]ipt>' != '<lin[66 chars]">\n<script type="text/javascript" src="/path/[13 chars]ipt>'
======================================================================
FAIL: test_media_inheritance (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 262, in test_media_inheritance
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>"""
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[424 chars]src="https://secure.other.com/path/to/js3"></s[63 chars]ipt>' != '<lin[424 chars]src="/path/to/js4"></script>\n<script type="te[63 chars]ipt>'
======================================================================
FAIL: test_media_inheritance_extends (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 337, in test_media_inheritance_extends
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>"""
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[424 chars]src="https://secure.other.com/path/to/js3"></s[63 chars]ipt>' != '<lin[424 chars]src="/path/to/js4"></script>\n<script type="te[63 chars]ipt>'
======================================================================
FAIL: test_media_property_parent_references (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 216, in test_media_property_parent_references
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>"""
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[109 chars]ef="/path/to/css2" type="text/css" media="all"[373 chars]ipt>' != '<lin[109 chars]ef="/other/path" type="text/css" media="all" r[373 chars]ipt>'
======================================================================
FAIL: test_merge (forms_tests.tests.test_media.FormsMediaTestCase) [<object object at 0x7bb6d8d28f50>] (lists=([1, 2], [3, 4]))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 553, in test_merge
self.assertEqual(Media.merge(*lists), expected)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1028, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1010, in assertSequenceEqual
self.fail(msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: Lists differ: [1, 2, 3, 4] != [1, 3, 2, 4]
First differing element 1:
2
3
- [1, 2, 3, 4]
? ---
+ [1, 3, 2, 4]
? +++
======================================================================
FAIL: test_merge_js_three_way (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 568, in test_merge_js_three_way
self.assertEqual(merged._js, ['text-editor.js', 'text-editor-extras.js', 'color-picker.js'])
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1028, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1010, in assertSequenceEqual
self.fail(msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: Lists differ: ['text-editor-extras.js', 'color-picker.js', 'text-editor.js'] != ['text-editor.js', 'text-editor-extras.js', 'color-picker.js']
First differing element 0:
'text-editor-extras.js'
'text-editor.js'
- ['text-editor-extras.js', 'color-picker.js', 'text-editor.js']
+ ['text-editor.js', 'text-editor-extras.js', 'color-picker.js']
======================================================================
FAIL: test_multi_widget (forms_tests.tests.test_media.FormsMediaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/forms_tests/tests/test_media.py", line 435, in test_multi_widget
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>"""
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: '<lin[424 chars]src="https://secure.other.com/path/to/js3"></s[63 chars]ipt>' != '<lin[424 chars]src="/path/to/js4"></script>\n<script type="te[63 chars]ipt>'
======================================================================
FAIL: test_media (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) [<object object at 0x7bb6d8d28f60>] (lang='de')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/admin_widgets/test_autocomplete_widget.py", line 142, in test_media
self.assertEqual(AutocompleteSelect(rel, admin.site).media._js, list(expected_files))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: ('admin/js/vendor/jquery/jquery.min.js', [134 chars].js') != ['admin/js/vendor/jquery/jquery.min.js', [134 chars].js']
======================================================================
FAIL: test_media (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) [<object object at 0x7bb6d8d28f60>] (lang='00')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/admin_widgets/test_autocomplete_widget.py", line 142, in test_media
self.assertEqual(AutocompleteSelect(rel, admin.site).media._js, list(expected_files))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: ('admin/js/vendor/jquery/jquery.min.js', [96 chars].js') != ['admin/js/vendor/jquery/jquery.min.js', [96 chars].js']
======================================================================
FAIL: test_media (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) [<object object at 0x7bb6d8d28f60>] (lang='sr-cyrl')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/admin_widgets/test_autocomplete_widget.py", line 142, in test_media
self.assertEqual(AutocompleteSelect(rel, admin.site).media._js, list(expected_files))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: ('admin/js/vendor/jquery/jquery.min.js', [139 chars].js') != ['admin/js/vendor/jquery/jquery.min.js', [139 chars].js']
======================================================================
FAIL: test_media (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) [<object object at 0x7bb6d8d28f60>] (lang='zh-hans')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/admin_widgets/test_autocomplete_widget.py", line 142, in test_media
self.assertEqual(AutocompleteSelect(rel, admin.site).media._js, list(expected_files))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: ('admin/js/vendor/jquery/jquery.min.js', [137 chars].js') != ['admin/js/vendor/jquery/jquery.min.js', [137 chars].js']
======================================================================
FAIL: test_media (admin_widgets.test_autocomplete_widget.AutocompleteMixinTests) [<object object at 0x7bb6d8d28f60>] (lang='zh-hant')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/admin_widgets/test_autocomplete_widget.py", line 142, in test_media
self.assertEqual(AutocompleteSelect(rel, admin.site).media._js, list(expected_files))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: ('admin/js/vendor/jquery/jquery.min.js', [137 chars].js') != ['admin/js/vendor/jquery/jquery.min.js', [137 chars].js']
======================================================================
FAIL: test_inline_media_only_inline (admin_inlines.tests.TestInlineMedia)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/admin_inlines/tests.py", line 503, in test_inline_media_only_inline
'admin/js/inlines.min.js',
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1028, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1010, in assertSequenceEqual
self.fail(msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: Lists differ: ['adm[32 chars]s', 'admin/js/jquery.init.js', 'admin/js/inlin[58 chars].js'] != ['adm[32 chars]s', 'my_awesome_inline_scripts.js', 'custom_nu[58 chars].js']
First differing element 1:
'admin/js/jquery.init.js'
'my_awesome_inline_scripts.js'
['admin/js/vendor/jquery/jquery.min.js',
+ 'my_awesome_inline_scripts.js',
+ 'custom_number.js',
'admin/js/jquery.init.js',
- 'admin/js/inlines.min.js',
? ^
+ 'admin/js/inlines.min.js']
? ^
- 'my_awesome_inline_scripts.js',
- 'custom_number.js']
----------------------------------------------------------------------
Ran 80 tests in 3.783s
FAILED (failures=16, errors=6, skipped=6)
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
[django__django__3.0] [django__django-11019] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.0] [django__django-11019] Test script run successful