-
Notifications
You must be signed in to change notification settings - Fork 23
/
django__django-14997.20240402_sweagent_gpt4.eval.log
558 lines (536 loc) · 36.3 KB
/
django__django-14997.20240402_sweagent_gpt4.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
[django__django__4.1] [django__django-14997] Task Metadata:
- Instance ID: django__django-14997
- Testbed: django__django__4.1
- Evaluation Model: 20240402_sweagent_gpt4
- Python version: Python 3.9.19
[django__django__4.1] [django__django-14997] Command: git -c advice.detachedHead=false checkout 0d4e575c96d408e0efb4dfd0cbfc864219776950
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
Previous HEAD position was 647480166b Refs #33685 -- Doc'd that using PostgreSQL's service names for testing purposes is not supported.
HEAD is now at 0d4e575c96 Fixed #33198 -- Corrected BinaryField.max_length docs.
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Command: git diff > /opt/temp_django__django-14997_pred_try_init.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Command: git apply -v /opt/temp_django__django-14997_pred_try.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
Checking patch reproduce_bug.py...
/opt/temp_django__django-14997_pred_try.patch:108: new blank line at EOF.
+
Checking patch test_db.sqlite3...
Applied patch reproduce_bug.py cleanly.
Applied patch test_db.sqlite3 cleanly.
warning: 1 line adds whitespace errors.
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-14997] Command: git diff > /opt/temp_django__django-14997_pred_try_init.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Command: git apply -v -R /opt/temp_django__django-14997_pred_try.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
Checking patch test_db.sqlite3...
Checking patch reproduce_bug.py...
Applied patch test_db.sqlite3 cleanly.
Applied patch reproduce_bug.py cleanly.
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-14997] Command: git diff > /opt/temp_django__django-14997_pred_init.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Command: git apply -v /opt/temp_django__django-14997_pred.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
Checking patch reproduce_bug.py...
/opt/temp_django__django-14997_pred.patch:108: new blank line at EOF.
+
Checking patch test_db.sqlite3...
Applied patch reproduce_bug.py cleanly.
Applied patch test_db.sqlite3 cleanly.
warning: 1 line adds whitespace errors.
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.1] [django__django-14997] Command: git diff > /opt/temp_django__django-14997_test_init.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Command: git apply -v /opt/temp_django__django-14997_test.patch
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14997] Std. Output:
Checking patch tests/backends/test_ddl_references.py...
Checking patch tests/migrations/test_operations.py...
Applied patch tests/backends/test_ddl_references.py cleanly.
Applied patch tests/migrations/test_operations.py cleanly.
[django__django__4.1] [django__django-14997] Return Code: 0
[django__django__4.1] [django__django-14997] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 backends.test_ddl_references migrations.test_operations;
[django__django__4.1] [django__django-14997] Command: ./tests/runtests.py --verbosity 2 backends.test_ddl_references migrations.test_operations
[django__django__4.1] [django__django-14997] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__4.1] [django__django-14997] Std. Output:
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Testing against Django installed in '/opt/django__django/django' with up to 128 processes
Importing application backends
Importing application migrations
Found 153 test(s).
Operations to perform:
Synchronize unmigrated apps: auth, backends, contenttypes, messages, migrations, 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 backends_square
Creating table backends_person
Creating table backends_schoolclass
Creating table backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Creating table backends_tag
Creating table CaseSensitive_Post
Creating table backends_reporter
Creating table backends_article
Creating table backends_item
Creating table backends_object
Creating table backends_objectreference
Creating table backends_objectselfreference
Creating table backends_circulara
Creating table backends_circularb
Creating table backends_rawdata
Creating table backends_author
Creating table backends_book
Creating table order
Creating table migrations_modelwithcustombase
Creating table migrations_unmigratedmodel
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
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')...
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')...
Creating test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Operations to perform:
Synchronize unmigrated apps: auth, backends, contenttypes, messages, migrations, 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 backends_square
Creating table backends_person
Creating table backends_schoolclass
Creating table backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Creating table backends_tag
Creating table CaseSensitive_Post
Creating table backends_reporter
Creating table backends_article
Creating table backends_item
Creating table backends_object
Creating table backends_objectreference
Creating table backends_objectselfreference
Creating table backends_circulara
Creating table backends_circularb
Creating table backends_rawdata
Creating table backends_author
Creating table backends_book
Creating table order
Creating table migrations_modelwithcustombase
Creating table migrations_unmigratedmodel
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
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
System check identified no issues (0 silenced).
test_references_table (backends.test_ddl_references.TableTests) ... ok
test_rename_table_references (backends.test_ddl_references.TableTests) ... ok
test_repr (backends.test_ddl_references.TableTests) ... ok
test_str (backends.test_ddl_references.TableTests) ... ok
test_references_column (backends.test_ddl_references.IndexNameTests) ... ok
test_references_table (backends.test_ddl_references.IndexNameTests) ... ok
test_rename_column_references (backends.test_ddl_references.IndexNameTests) ... ok
test_rename_table_references (backends.test_ddl_references.IndexNameTests) ... ok
test_repr (backends.test_ddl_references.IndexNameTests) ... ok
test_str (backends.test_ddl_references.IndexNameTests) ... ok
test_references_column (backends.test_ddl_references.StatementTests) ... ok
test_references_table (backends.test_ddl_references.StatementTests) ... ok
test_rename_column_references (backends.test_ddl_references.StatementTests) ... ok
test_rename_table_references (backends.test_ddl_references.StatementTests) ... ok
test_repr (backends.test_ddl_references.StatementTests) ... ok
test_str (backends.test_ddl_references.StatementTests) ... ok
test_references_column (backends.test_ddl_references.ColumnsTests) ... ok
test_references_table (backends.test_ddl_references.ColumnsTests) ... ok
test_rename_column_references (backends.test_ddl_references.ColumnsTests) ... ok
test_rename_table_references (backends.test_ddl_references.ColumnsTests) ... ok
test_repr (backends.test_ddl_references.ColumnsTests) ... ok
test_str (backends.test_ddl_references.ColumnsTests) ... ok
test_references_column (backends.test_ddl_references.ForeignKeyNameTests) ... ok
test_references_table (backends.test_ddl_references.ForeignKeyNameTests) ... ok
test_rename_column_references (backends.test_ddl_references.ForeignKeyNameTests) ... ok
test_rename_table_references (backends.test_ddl_references.ForeignKeyNameTests) ... ok
test_repr (backends.test_ddl_references.ForeignKeyNameTests) ... ok
test_str (backends.test_ddl_references.ForeignKeyNameTests) ... ok
test_references_model_mixin (migrations.test_operations.TestCreateModel) ... ok
test_reference_field_by_through_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_from_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_name (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_remote_field_model (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_through (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_to_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_model (migrations.test_operations.FieldOperationTests) ... ok
test_references_column (backends.test_ddl_references.ExpressionsTests) ... ok
test_references_table (backends.test_ddl_references.ExpressionsTests) ... ok
test_rename_column_references (backends.test_ddl_references.ExpressionsTests) ... ok
test_rename_table_references (backends.test_ddl_references.ExpressionsTests) ... ok
test_rename_table_references_without_alias (backends.test_ddl_references.ExpressionsTests) ... FAIL
test_str (backends.test_ddl_references.ExpressionsTests) ... ok
test_add_field_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Tests the AddField operation. ... ok
test_create_ignore_swapped (migrations.test_operations.SwappableOperationTests)
The CreateTable operation ignores swapped models. ... ok
test_delete_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Tests the DeleteModel operation ignores swapped models. ... ok
test_indexes_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Add/RemoveIndex operations ignore swapped models. ... ok
test_add_binaryfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField/BinaryField. ... ok
test_add_charfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField. ... ok
test_add_constraint (migrations.test_operations.OperationTests) ... ok
test_add_constraint_combinable (migrations.test_operations.OperationTests) ... ok
test_add_constraint_percent_escaping (migrations.test_operations.OperationTests) ... ok
test_add_covering_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_field (migrations.test_operations.OperationTests)
Tests the AddField operation. ... ok
test_add_field_m2m (migrations.test_operations.OperationTests)
Tests the AddField operation with a ManyToManyField. ... ok
test_add_field_preserve_default (migrations.test_operations.OperationTests)
Tests the AddField operation's state alteration ... ok
test_add_func_index (migrations.test_operations.OperationTests) ... ok
test_add_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_index (migrations.test_operations.OperationTests)
Test the AddIndex operation. ... ok
test_add_index_state_forwards (migrations.test_operations.OperationTests) ... ok
test_add_or_constraint (migrations.test_operations.OperationTests) ... ok
test_add_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_textfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField. ... ok
test_alter_field (migrations.test_operations.OperationTests)
Tests the AlterField operation. ... ok
test_alter_field_add_db_column_noop (migrations.test_operations.OperationTests)
AlterField operation is a noop when adding only a db_column and the ... ok
test_alter_field_m2m (migrations.test_operations.OperationTests) ... ok
test_alter_field_pk (migrations.test_operations.OperationTests)
Tests the AlterField operation on primary keys (for things like PostgreSQL's SERIAL weirdness) ... ok
test_alter_field_pk_fk (migrations.test_operations.OperationTests)
Tests the AlterField operation on primary keys changes any FKs pointing to it. ... ok
test_alter_field_pk_mti_fk (migrations.test_operations.OperationTests) ... ok
test_alter_field_reloads_state_on_fk_target_changes (migrations.test_operations.OperationTests)
If AlterField doesn't reload state appropriately, the second AlterField ... ok
test_alter_field_reloads_state_on_fk_with_to_field_related_name_target_type_change (migrations.test_operations.OperationTests) ... ok
test_alter_field_reloads_state_on_fk_with_to_field_target_changes (migrations.test_operations.OperationTests)
If AlterField doesn't reload state appropriately, the second AlterField ... ok
test_alter_field_reloads_state_on_fk_with_to_field_target_type_change (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_func_index (migrations.test_operations.OperationTests) ... ERROR
test_alter_field_with_func_unique_constraint (migrations.test_operations.OperationTests) ... ERROR
test_alter_field_with_index (migrations.test_operations.OperationTests)
Test AlterField operation with an index to ensure indexes created via ... ok
test_alter_fk (migrations.test_operations.OperationTests)
Creating and then altering an FK works correctly ... ok
test_alter_fk_non_fk (migrations.test_operations.OperationTests)
Altering an FK to a non-FK works (#23244) ... ok
test_alter_index_together (migrations.test_operations.OperationTests)
Tests the AlterIndexTogether operation. ... ok
test_alter_index_together_remove (migrations.test_operations.OperationTests) ... ok
test_alter_index_together_remove_with_unique_together (migrations.test_operations.OperationTests) ... ok
test_alter_model_managers (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_alter_model_managers_emptying (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_alter_model_options (migrations.test_operations.OperationTests)
Tests the AlterModelOptions operation. ... ok
test_alter_model_options_emptying (migrations.test_operations.OperationTests)
The AlterModelOptions operation removes keys from the dict (#23121) ... ok
test_alter_model_table (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation. ... ok
test_alter_model_table_m2m (migrations.test_operations.OperationTests)
AlterModelTable should rename auto-generated M2M tables. ... ok
test_alter_model_table_none (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation if the table name is set to None. ... ok
test_alter_model_table_noop (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation if the table name is not changed. ... ok
test_alter_order_with_respect_to (migrations.test_operations.OperationTests)
Tests the AlterOrderWithRespectTo operation. ... ok
test_alter_unique_together (migrations.test_operations.OperationTests)
Tests the AlterUniqueTogether operation. ... ok
test_alter_unique_together_remove (migrations.test_operations.OperationTests) ... ok
test_autofield__bigautofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from AutoField to BigAutoField. ... ok
test_column_name_quoting (migrations.test_operations.OperationTests)
Column names that are SQL keywords shouldn't cause problems when used ... ok
test_create_model (migrations.test_operations.OperationTests)
Tests the CreateModel operation. ... ok
test_create_model_inheritance (migrations.test_operations.OperationTests)
Tests the CreateModel operation on a multi-table inheritance setup. ... ok
test_create_model_m2m (migrations.test_operations.OperationTests)
Test the creation of a model with a ManyToMany field and the ... ok
test_create_model_managers (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_create_model_with_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_covering_unique_constraint (migrations.test_operations.OperationTests) ... skipped "Database doesn't support feature(s): supports_covering_indexes"
test_create_model_with_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_base (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_field_name (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_manager_name (migrations.test_operations.OperationTests) ... ok
test_create_model_with_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_unique_after (migrations.test_operations.OperationTests)
Tests the CreateModel operation directly followed by an ... ok
test_create_proxy_model (migrations.test_operations.OperationTests)
CreateModel ignores proxy models. ... ok
test_create_unmanaged_model (migrations.test_operations.OperationTests)
CreateModel ignores unmanaged models. ... ok
test_delete_model (migrations.test_operations.OperationTests)
Tests the DeleteModel operation. ... ok
test_delete_mti_model (migrations.test_operations.OperationTests) ... ok
test_delete_proxy_model (migrations.test_operations.OperationTests)
Tests the DeleteModel operation ignores proxy models. ... ok
test_model_with_bigautofield (migrations.test_operations.OperationTests)
A model with BigAutoField can be created. ... ok
test_remove_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_covering_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_field (migrations.test_operations.OperationTests)
Tests the RemoveField operation. ... ok
test_remove_field_m2m (migrations.test_operations.OperationTests) ... ok
test_remove_field_m2m_with_through (migrations.test_operations.OperationTests) ... ok
test_remove_fk (migrations.test_operations.OperationTests)
Tests the RemoveField operation on a foreign key. ... ok
test_remove_func_index (migrations.test_operations.OperationTests) ... ok
test_remove_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_index (migrations.test_operations.OperationTests)
Test the RemoveIndex operation. ... ok
test_remove_index_state_forwards (migrations.test_operations.OperationTests) ... ok
test_remove_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_rename_field (migrations.test_operations.OperationTests)
Tests the RenameField operation. ... ok
test_rename_field_case (migrations.test_operations.OperationTests) ... ok
test_rename_field_reloads_state_on_fk_target_changes (migrations.test_operations.OperationTests)
If RenameField doesn't reload state appropriately, the AlterField ... ok
test_rename_field_with_db_column (migrations.test_operations.OperationTests) ... ok
test_rename_m2m_model_after_rename_field (migrations.test_operations.OperationTests)
RenameModel renames a many-to-many column after a RenameField. ... ok
test_rename_m2m_target_model (migrations.test_operations.OperationTests) ... ok
test_rename_m2m_through_model (migrations.test_operations.OperationTests) ... ok
test_rename_missing_field (migrations.test_operations.OperationTests) ... ok
test_rename_model (migrations.test_operations.OperationTests)
Tests the RenameModel operation. ... ok
test_rename_model_state_forwards (migrations.test_operations.OperationTests)
RenameModel operations shouldn't trigger the caching of rendered apps ... ok
test_rename_model_with_m2m (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_self_referential_fk (migrations.test_operations.OperationTests)
Tests the RenameModel operation on model with self referential FK. ... ok
test_rename_model_with_self_referential_m2m (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_superclass_fk (migrations.test_operations.OperationTests)
Tests the RenameModel operation on a model which has a superclass that ... ok
test_rename_referenced_field_state_forward (migrations.test_operations.OperationTests) ... ok
test_repoint_field_m2m (migrations.test_operations.OperationTests) ... ok
test_run_python (migrations.test_operations.OperationTests)
Tests the RunPython operation ... ok
test_run_python_atomic (migrations.test_operations.OperationTests)
Tests the RunPython operation correctly handles the "atomic" keyword ... ok
test_run_python_noop (migrations.test_operations.OperationTests)
#24098 - Tests no-op RunPython operations. ... ok
test_run_python_related_assignment (migrations.test_operations.OperationTests)
#24282 - Model changes to a FK reverse side update the model ... ok
test_run_sql (migrations.test_operations.OperationTests)
Tests the RunSQL operation. ... ok
test_run_sql_add_missing_semicolon_on_collect_sql (migrations.test_operations.OperationTests) ... ok
test_run_sql_noop (migrations.test_operations.OperationTests)
#24098 - Tests no-op RunSQL operations. ... ok
test_run_sql_params (migrations.test_operations.OperationTests)
#23426 - RunSQL should accept parameters. ... ok
test_run_sql_params_invalid (migrations.test_operations.OperationTests)
#23426 - RunSQL should fail when a list of statements with an incorrect ... ok
test_separate_database_and_state (migrations.test_operations.OperationTests)
Tests the SeparateDatabaseAndState operation. ... ok
test_separate_database_and_state2 (migrations.test_operations.OperationTests)
A complex SeparateDatabaseAndState operation: Multiple operations both ... ok
test_smallfield_autofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from SmallAutoField to AutoField. ... ok
test_smallfield_bigautofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from SmallAutoField to BigAutoField. ... ok
======================================================================
ERROR: test_alter_field_with_func_index (migrations.test_operations.OperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/sqlite3/base.py", line 417, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: the "." operator prohibited in index expressions
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 592, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/opt/django__django/django/test/testcases.py", line 1305, in skip_wrapper
return test_func(*args, **kwargs)
File "/opt/django__django/tests/migrations/test_operations.py", line 2122, in test_alter_field_with_func_index
operation.database_forwards(app_label, editor, project_state, new_state)
File "/opt/django__django/django/db/migrations/operations/fields.py", line 225, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
File "/opt/django__django/django/db/backends/sqlite3/schema.py", line 140, in alter_field
super().alter_field(model, old_field, new_field, strict=strict)
File "/opt/django__django/django/db/backends/base/schema.py", line 618, in alter_field
self._alter_field(model, old_field, new_field, old_type, new_type,
File "/opt/django__django/django/db/backends/sqlite3/schema.py", line 362, in _alter_field
self._remake_table(model, alter_field=(old_field, new_field))
File "/opt/django__django/django/db/backends/sqlite3/schema.py", line 303, in _remake_table
self.execute(sql)
File "/opt/django__django/django/db/backends/base/schema.py", line 151, in execute
cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/opt/django__django/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/django__django/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/django__django/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/sqlite3/base.py", line 417, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: the "." operator prohibited in index expressions
======================================================================
ERROR: test_alter_field_with_func_unique_constraint (migrations.test_operations.OperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/sqlite3/base.py", line 417, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: the "." operator prohibited in index expressions
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 592, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/opt/django__django/tests/migrations/test_operations.py", line 2698, in test_alter_field_with_func_unique_constraint
operation.database_forwards(app_label, editor, project_state, new_state)
File "/opt/django__django/django/db/migrations/operations/fields.py", line 225, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
File "/opt/django__django/django/db/backends/sqlite3/schema.py", line 140, in alter_field
super().alter_field(model, old_field, new_field, strict=strict)
File "/opt/django__django/django/db/backends/base/schema.py", line 618, in alter_field
self._alter_field(model, old_field, new_field, old_type, new_type,
File "/opt/django__django/django/db/backends/sqlite3/schema.py", line 362, in _alter_field
self._remake_table(model, alter_field=(old_field, new_field))
File "/opt/django__django/django/db/backends/sqlite3/schema.py", line 303, in _remake_table
self.execute(sql)
File "/opt/django__django/django/db/backends/base/schema.py", line 151, in execute
cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/opt/django__django/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/django__django/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/django__django/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/sqlite3/base.py", line 417, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: the "." operator prohibited in index expressions
======================================================================
FAIL: test_rename_table_references_without_alias (backends.test_ddl_references.ExpressionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 592, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/opt/django__django/tests/backends/test_ddl_references.py", line 252, in test_rename_table_references_without_alias
self.assertEqual(str(expressions), expected_str)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 837, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 1217, in assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 676, in fail
raise self.failureException(msg)
AssertionError: '(UPPER("other"."last_name")), "other"."first_name"' != '(UPPER("last_name")), "first_name"'
- (UPPER("other"."last_name")), "other"."first_name"
? -------- --------
+ (UPPER("last_name")), "first_name"
----------------------------------------------------------------------
Ran 153 tests in 1.423s
FAILED (failures=1, errors=2, skipped=1)
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')...
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 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
[django__django__4.1] [django__django-14997] Return Code: 1
>>>>> Some Tests Failed
[django__django__4.1] [django__django-14997] Test script run successful