-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-14667.gpt-4-0125-preview.eval.log
439 lines (412 loc) · 26.5 KB
/
django__django-14667.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
[django__django__4.0] [django__django-14667] Task Metadata:
- Instance ID: django__django-14667
- Testbed: django__django__4.0
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.8.19
[django__django__4.0] [django__django-14667] Command: git -c advice.detachedHead=false checkout 6a970a8b4600eb91be25f38caed0a52269d6303d
[django__django__4.0] [django__django-14667] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14667] Std. Output:
Previous HEAD position was 475cffd1d6 Fixed typo in docs/intro/reusable-apps.txt.
HEAD is now at 6a970a8b46 Fixed #32944 -- Avoided unnecessary WhereNode.add() calls.
[django__django__4.0] [django__django-14667] Return Code: 0
[django__django__4.0] [django__django-14667] Command: git apply -v /opt/temp_django__django-14667_pred_try.patch
[django__django__4.0] [django__django-14667] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14667] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__4.0] [django__django-14667] Return Code: 0
[django__django__4.0] [django__django-14667] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.0] [django__django-14667] Command: git apply -v -R /opt/temp_django__django-14667_pred_try.patch
[django__django__4.0] [django__django-14667] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14667] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__4.0] [django__django-14667] Return Code: 0
[django__django__4.0] [django__django-14667] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.0] [django__django-14667] Command: git apply -v /opt/temp_django__django-14667_pred.patch
[django__django__4.0] [django__django-14667] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14667] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__4.0] [django__django-14667] Return Code: 0
[django__django__4.0] [django__django-14667] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.0] [django__django-14667] Command: git apply -v /opt/temp_django__django-14667_test.patch
[django__django__4.0] [django__django-14667] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14667] Std. Output:
Checking patch tests/defer/tests.py...
Applied patch tests/defer/tests.py cleanly.
[django__django__4.0] [django__django-14667] Return Code: 0
[django__django__4.0] [django__django-14667] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 defer.tests;
[django__django__4.0] [django__django-14667] Command: ./tests/runtests.py --verbosity 2 defer.tests
[django__django__4.0] [django__django-14667] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__4.0] [django__django-14667] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application defer
Found 30 test(s).
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, defer, 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 defer_secondary
Creating table defer_primary
Creating table defer_child
Creating table defer_bigchild
Creating table defer_shadowparent
Creating table defer_shadowchild
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
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
System check identified no issues (0 silenced).
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')...
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_defer_baseclass_when_subclass_has_added_field (defer.tests.BigChildDeferTests) ... ERROR
test_defer_subclass (defer.tests.BigChildDeferTests) ... ERROR
test_defer_subclass_both (defer.tests.BigChildDeferTests) ... ERROR
test_only_baseclass_when_subclass_has_added_field (defer.tests.BigChildDeferTests) ... ok
test_only_subclass (defer.tests.BigChildDeferTests) ... ok
test_custom_refresh_on_deferred_loading (defer.tests.TestDefer2) ... ok
test_defer_inheritance_pk_chaining (defer.tests.TestDefer2)
When an inherited model is fetched from the DB, its PK is also fetched. ... ok
test_defer_proxy (defer.tests.TestDefer2)
Ensure select_related together with only on a proxy model behaves ... ok
test_eq (defer.tests.TestDefer2) ... ok
test_refresh_not_loading_deferred_fields (defer.tests.TestDefer2) ... ok
test_defer (defer.tests.DeferTests) ... ERROR
test_defer_baseclass_when_subclass_has_no_added_fields (defer.tests.DeferTests) ... ERROR
test_defer_extra (defer.tests.DeferTests) ... ERROR
test_defer_foreign_keys_are_deferred_and_not_traversed (defer.tests.DeferTests) ... ERROR
test_defer_none_to_clear_deferred_set (defer.tests.DeferTests) ... ERROR
test_defer_of_overridden_scalar (defer.tests.DeferTests) ... ERROR
test_defer_on_an_already_deferred_field (defer.tests.DeferTests) ... ERROR
test_defer_only_chaining (defer.tests.DeferTests) ... ERROR
test_defer_only_clear (defer.tests.DeferTests) ... ERROR
test_defer_select_related_raises_invalid_query (defer.tests.DeferTests) ... ERROR
test_defer_values_does_not_defer (defer.tests.DeferTests) ... ERROR
test_defer_with_select_related (defer.tests.DeferTests) ... ERROR
test_get (defer.tests.DeferTests) ... ERROR
test_only (defer.tests.DeferTests) ... ok
test_only_baseclass_when_subclass_has_no_added_fields (defer.tests.DeferTests) ... ok
test_only_none_raises_error (defer.tests.DeferTests) ... ok
test_only_select_related_raises_invalid_query (defer.tests.DeferTests) ... ok
test_only_values_does_not_defer (defer.tests.DeferTests) ... ok
test_only_with_select_related (defer.tests.DeferTests) ... ok
test_saving_object_with_deferred_field (defer.tests.DeferTests) ... ERROR
======================================================================
ERROR: test_defer_baseclass_when_subclass_has_added_field (defer.tests.BigChildDeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 191, in test_defer_baseclass_when_subclass_has_added_field
obj = BigChild.objects.defer("value").get(name="b1")
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_subclass (defer.tests.BigChildDeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 199, in test_defer_subclass
obj = BigChild.objects.defer("other").get(name="b1")
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_subclass_both (defer.tests.BigChildDeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 207, in test_defer_subclass_both
obj = BigChild.objects.defer("other", "value").get(name="b1")
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 29, in test_defer
self.assert_delayed(qs.defer("name")[0], 1)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_baseclass_when_subclass_has_no_added_fields (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 163, in test_defer_baseclass_when_subclass_has_no_added_fields
obj = Child.objects.defer("value").get(name="c1")
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_extra (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 81, in test_defer_extra
self.assert_delayed(qs.defer("name").extra(select={"a": 1})[0], 1)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_foreign_keys_are_deferred_and_not_traversed (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 139, in test_defer_foreign_keys_are_deferred_and_not_traversed
obj = Primary.objects.defer("related").select_related()[0]
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_none_to_clear_deferred_set (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 70, in test_defer_none_to_clear_deferred_set
self.assert_delayed(qs.defer("name", "value")[0], 2)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_of_overridden_scalar (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 179, in test_defer_of_overridden_scalar
obj = ShadowChild.objects.defer('name').get()
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_on_an_already_deferred_field (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 65, in test_defer_on_an_already_deferred_field
self.assert_delayed(qs.defer("name")[0], 1)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_only_chaining (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 50, in test_defer_only_chaining
self.assert_delayed(qs.only("name", "value").defer("name")[0], 2)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_only_clear (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 60, in test_defer_only_clear
self.assert_delayed(qs.only('name').defer('name')[0], 0)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_select_related_raises_invalid_query (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 126, in test_defer_select_related_raises_invalid_query
Primary.objects.defer("related").select_related("related")[0]
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_values_does_not_defer (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 87, in test_defer_values_does_not_defer
self.assertEqual(Primary.objects.defer("name").values()[0], {
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_defer_with_select_related (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 109, in test_defer_with_select_related
obj = Primary.objects.select_related().defer("related__first", "related__second")[0]
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_get (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 105, in test_get
self.assert_delayed(qs.defer("name").get(pk=self.p1.pk), 1)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
======================================================================
ERROR: test_saving_object_with_deferred_field (defer.tests.DeferTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/tests/defer/tests.py", line 147, in test_saving_object_with_deferred_field
obj = Primary.objects.defer("value").get(name="p2")
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1225, in defer
immediate_fields = set(clone.query.immediate_loading)
AttributeError: 'Query' object has no attribute 'immediate_loading'
----------------------------------------------------------------------
Ran 30 tests in 0.297s
FAILED (errors=17)
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 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
[django__django__4.0] [django__django-14667] Return Code: 1
>>>>> Some Tests Failed
[django__django__4.0] [django__django-14667] Test script run successful