-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-13551.gpt-4-0125-preview.eval.log
274 lines (263 loc) · 18.3 KB
/
django__django-13551.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
[django__django__3.2] [django__django-13551] Task Metadata:
- Instance ID: django__django-13551
- Testbed: django__django__3.2
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.2] [django__django-13551] Command: git -c advice.detachedHead=false checkout 7f9e4524d6b23424cf44fbe1bf1f4e70f6bb066e
[django__django__3.2] [django__django-13551] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13551] Std. Output:
Previous HEAD position was 65dfb06a1a [3.2.x] Fixed #32648 -- Fixed VariableDoesNotExist rendering sitemaps template.
HEAD is now at 7f9e4524d6 Fixed typo in docs/releases/3.2.txt.
[django__django__3.2] [django__django-13551] Return Code: 0
[django__django__3.2] [django__django-13551] Command: git apply -v /opt/temp_django__django-13551_pred_try.patch
[django__django__3.2] [django__django-13551] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13551] Std. Output:
Checking patch django/contrib/auth/tokens.py...
Applied patch django/contrib/auth/tokens.py cleanly.
[django__django__3.2] [django__django-13551] Return Code: 0
[django__django__3.2] [django__django-13551] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.2] [django__django-13551] Command: git apply -v -R /opt/temp_django__django-13551_pred_try.patch
[django__django__3.2] [django__django-13551] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13551] Std. Output:
Checking patch django/contrib/auth/tokens.py...
Applied patch django/contrib/auth/tokens.py cleanly.
[django__django__3.2] [django__django-13551] Return Code: 0
[django__django__3.2] [django__django-13551] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.2] [django__django-13551] Command: git apply -v /opt/temp_django__django-13551_pred.patch
[django__django__3.2] [django__django-13551] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13551] Std. Output:
Checking patch django/contrib/auth/tokens.py...
Applied patch django/contrib/auth/tokens.py cleanly.
[django__django__3.2] [django__django-13551] Return Code: 0
[django__django__3.2] [django__django-13551] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.2] [django__django-13551] Command: git apply -v /opt/temp_django__django-13551_test.patch
[django__django__3.2] [django__django-13551] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13551] Std. Output:
Checking patch tests/auth_tests/models/__init__.py...
Checking patch tests/auth_tests/models/with_custom_email_field.py...
Checking patch tests/auth_tests/test_models.py...
Checking patch tests/auth_tests/test_tokens.py...
Applied patch tests/auth_tests/models/__init__.py cleanly.
Applied patch tests/auth_tests/models/with_custom_email_field.py cleanly.
Applied patch tests/auth_tests/test_models.py cleanly.
Applied patch tests/auth_tests/test_tokens.py cleanly.
[django__django__3.2] [django__django-13551] Return Code: 0
[django__django__3.2] [django__django-13551] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 auth_tests.models.__init__ auth_tests.models.with_custom_email_field auth_tests.test_models auth_tests.test_tokens;
[django__django__3.2] [django__django-13551] Command: ./tests/runtests.py --verbosity 2 auth_tests.models.__init__ auth_tests.models.with_custom_email_field auth_tests.test_models auth_tests.test_tokens
[django__django__3.2] [django__django-13551] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__3.2] [django__django-13551] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application auth_tests
Operations to perform:
Synchronize unmigrated apps: auth, auth_tests, contenttypes, 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 auth_tests_customuser
Creating table auth_tests_customuserwithoutisactivefield
Creating table auth_tests_extensionuser
Creating table auth_tests_custompermissionsuser
Creating table auth_tests_customusernonuniqueusername
Creating table auth_tests_isactivetestuser1
Creating table auth_tests_minimaluser
Creating table auth_tests_nopassworduser
Creating table auth_tests_concrete
Creating table auth_tests_uuiduser
Creating table auth_tests_customemailfield
Creating table auth_tests_email
Creating table auth_tests_customuserwithfk
Creating table auth_tests_integerusernameuser
Creating table auth_tests_userwithdisabledlastloginfield
Creating table auth_tests_organization
Creating table auth_tests_customuserwithm2m
Creating table auth_tests_customuserwithm2mthrough
Creating table auth_tests_membership
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')...
Operations to perform:
Synchronize unmigrated apps: auth, auth_tests, contenttypes, 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 auth_tests_customuser
Creating table auth_tests_customuserwithoutisactivefield
Creating table auth_tests_extensionuser
Creating table auth_tests_custompermissionsuser
Creating table auth_tests_customusernonuniqueusername
Creating table auth_tests_isactivetestuser1
Creating table auth_tests_minimaluser
Creating table auth_tests_nopassworduser
Creating table auth_tests_concrete
Creating table auth_tests_uuiduser
Creating table auth_tests_customemailfield
Creating table auth_tests_email
Creating table auth_tests_customuserwithfk
Creating table auth_tests_integerusernameuser
Creating table auth_tests_userwithdisabledlastloginfield
Creating table auth_tests_organization
Creating table auth_tests_customuserwithm2m
Creating table auth_tests_customuserwithm2mthrough
Creating table auth_tests_membership
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')...
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')...
System check identified no issues (0 silenced).
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')...
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')...
test_str (auth_tests.test_models.PermissionTests) ... ok
test_str (auth_tests.test_models.GroupTests) ... ok
test_check_password (auth_tests.test_models.AnonymousUserTests) ... ok
test_delete (auth_tests.test_models.AnonymousUserTests) ... ok
test_eq (auth_tests.test_models.AnonymousUserTests) ... ok
test_hash (auth_tests.test_models.AnonymousUserTests) ... ok
test_int (auth_tests.test_models.AnonymousUserTests) ... ok
test_properties (auth_tests.test_models.AnonymousUserTests) ... ok
test_save (auth_tests.test_models.AnonymousUserTests) ... ok
test_set_password (auth_tests.test_models.AnonymousUserTests) ... ok
test_str (auth_tests.test_models.AnonymousUserTests) ... ok
test_create_superuser (auth_tests.test_models.TestCreateSuperUserSignals) ... ok
test_create_user (auth_tests.test_models.TestCreateSuperUserSignals) ... ok
test_group_natural_key (auth_tests.test_models.NaturalKeysTestCase) ... ok
test_user_natural_key (auth_tests.test_models.NaturalKeysTestCase) ... ok
test_load_data_with_user_permissions (auth_tests.test_models.LoadDataWithNaturalKeysAndMultipleDatabasesTestCase) ... ok
test_10265 (auth_tests.test_tokens.TokenGeneratorTest) ... ok
test_check_token_with_nonexistent_token_and_user (auth_tests.test_tokens.TokenGeneratorTest) ... ok
test_legacy_token_validation (auth_tests.test_tokens.TokenGeneratorTest) ... ok
test_make_token (auth_tests.test_tokens.TokenGeneratorTest) ... ok
test_timeout (auth_tests.test_tokens.TokenGeneratorTest)
The token is valid after n seconds, but no greater. ... ok
test_token_default_hashing_algorithm (auth_tests.test_tokens.TokenGeneratorTest) ... ok
test_token_with_different_email (auth_tests.test_tokens.TokenGeneratorTest)
Updating the user email address invalidates the token. ... test_token_with_different_secret (auth_tests.test_tokens.TokenGeneratorTest) ... ok
test_builtin_user_isactive (auth_tests.test_models.IsActiveTestCase) ... ok
test_is_active_field_default (auth_tests.test_models.IsActiveTestCase) ... ok
test_user_is_created_and_added_to_group (auth_tests.test_models.LoadDataWithoutNaturalKeysTestCase) ... ok
test_clean_normalize_username (auth_tests.test_models.AbstractBaseUserTests) ... ok
test_custom_email (auth_tests.test_models.AbstractBaseUserTests) ... ok
test_default_email (auth_tests.test_models.AbstractBaseUserTests) ... ok
test_has_usable_password (auth_tests.test_models.AbstractBaseUserTests) ... ok
test_normalize_username (auth_tests.test_models.AbstractBaseUserTests) ... ok
test_user_is_created_and_added_to_group (auth_tests.test_models.LoadDataWithNaturalKeysTestCase) ... ok
test_backend_without_with_perm (auth_tests.test_models.UserWithPermTestCase) ... ok
test_basic (auth_tests.test_models.UserWithPermTestCase) ... ok
test_custom_backend (auth_tests.test_models.UserWithPermTestCase) ... ok
test_custom_backend_pass_obj (auth_tests.test_models.UserWithPermTestCase) ... ok
test_invalid_backend_type (auth_tests.test_models.UserWithPermTestCase) ... ok
test_invalid_permission_name (auth_tests.test_models.UserWithPermTestCase) ... ok
test_invalid_permission_type (auth_tests.test_models.UserWithPermTestCase) ... ok
test_multiple_backends (auth_tests.test_models.UserWithPermTestCase) ... ok
test_nonexistent_backend (auth_tests.test_models.UserWithPermTestCase) ... ok
test_nonexistent_permission (auth_tests.test_models.UserWithPermTestCase) ... ok
test_create_super_user_raises_error_on_false_is_superuser (auth_tests.test_models.UserManagerTestCase) ... ok
test_create_superuser_raises_error_on_false_is_staff (auth_tests.test_models.UserManagerTestCase) ... ok
test_create_user (auth_tests.test_models.UserManagerTestCase) ... ok
test_create_user_email_domain_normalize (auth_tests.test_models.UserManagerTestCase) ... ok
test_create_user_email_domain_normalize_rfc3696 (auth_tests.test_models.UserManagerTestCase) ... ok
test_create_user_email_domain_normalize_with_whitespace (auth_tests.test_models.UserManagerTestCase) ... ok
test_create_user_is_staff (auth_tests.test_models.UserManagerTestCase) ... ok
test_empty_username (auth_tests.test_models.UserManagerTestCase) ... ok
test_make_random_password (auth_tests.test_models.UserManagerTestCase) ... ok
test_runpython_manager_methods (auth_tests.test_models.UserManagerTestCase) ... ok
test_check_password_upgrade (auth_tests.test_models.AbstractUserTestCase) ... ok
test_email_user (auth_tests.test_models.AbstractUserTestCase) ... ok
test_last_login_default (auth_tests.test_models.AbstractUserTestCase) ... ok
test_user_clean_normalize_email (auth_tests.test_models.AbstractUserTestCase) ... ok
test_user_double_save (auth_tests.test_models.AbstractUserTestCase) ... ok
======================================================================
ERROR: test_token_with_different_email (auth_tests.test_tokens.TokenGeneratorTest) [<object object at 0x7357d0b81800>] (email=None, model='CustomEmailField')
Updating the user email address invalidates the token.
----------------------------------------------------------------------
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/auth_tests/test_tokens.py", line 57, in test_token_with_different_email
tk1 = p0.make_token(user)
File "/opt/django__django/django/contrib/auth/tokens.py", line 28, in make_token
return self._make_token_with_timestamp(user, self._num_seconds(self._now()))
File "/opt/django__django/django/contrib/auth/tokens.py", line 70, in _make_token_with_timestamp
self._make_hash_value(user, timestamp),
File "/opt/django__django/django/contrib/auth/tokens.py", line 102, in _make_hash_value
return str(user.pk) + user.password + str(login_timestamp) + str(timestamp) + email
TypeError: must be str, not NoneType
----------------------------------------------------------------------
Ran 58 tests in 6.419s
FAILED (errors=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 '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')...
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__3.2] [django__django-13551] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.2] [django__django-13551] Test script run successful