-
Notifications
You must be signed in to change notification settings - Fork 23
/
django__django-13933.20240402_sweagent_gpt4.eval.log
173 lines (154 loc) · 11.1 KB
/
django__django-13933.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
[django__django__4.0] [django__django-13933] Task Metadata:
- Instance ID: django__django-13933
- Testbed: django__django__4.0
- Evaluation Model: 20240402_sweagent_gpt4
- Python version: Python 3.8.19
[django__django__4.0] [django__django-13933] Command: git -c advice.detachedHead=false checkout 42e8cf47c7ee2db238bf91197ea398126c546741
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
Previous HEAD position was 475cffd1d6 Fixed typo in docs/intro/reusable-apps.txt.
HEAD is now at 42e8cf47c7 Fixed #32369 -- Fixed adding check constraints with pattern lookups and expressions as rhs.
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Command: git diff > /opt/temp_django__django-13933_pred_try_init.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Command: git apply -v /opt/temp_django__django-13933_pred_try.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
Checking patch django/forms/models.py...
Applied patch django/forms/models.py cleanly.
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.0] [django__django-13933] Command: git diff > /opt/temp_django__django-13933_pred_try_init.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Command: git apply -v -R /opt/temp_django__django-13933_pred_try.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
Checking patch django/forms/models.py...
Applied patch django/forms/models.py cleanly.
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.0] [django__django-13933] Command: git diff > /opt/temp_django__django-13933_pred_init.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Command: git apply -v /opt/temp_django__django-13933_pred.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
Checking patch django/forms/models.py...
Applied patch django/forms/models.py cleanly.
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.0] [django__django-13933] Command: git diff > /opt/temp_django__django-13933_test_init.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Command: git apply -v /opt/temp_django__django-13933_test.patch
[django__django__4.0] [django__django-13933] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-13933] Std. Output:
Checking patch tests/forms_tests/tests/test_error_messages.py...
Applied patch tests/forms_tests/tests/test_error_messages.py cleanly.
[django__django__4.0] [django__django-13933] Return Code: 0
[django__django__4.0] [django__django-13933] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 forms_tests.tests.test_error_messages;
[django__django__4.0] [django__django-13933] Command: ./tests/runtests.py --verbosity 2 forms_tests.tests.test_error_messages
[django__django__4.0] [django__django-13933] 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-13933] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 128 processes
Importing application forms_tests
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: 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 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
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')...
test_modelchoicefield (forms_tests.tests.test_error_messages.ModelChoiceFieldErrorMessagesTestCase) ... ok
test_modelchoicefield_value_placeholder (forms_tests.tests.test_error_messages.ModelChoiceFieldErrorMessagesTestCase) ... FAIL
test_booleanfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_charfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_choicefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_datefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_datetimefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_decimalfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_emailfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_error_messages_escaping (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_filefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_floatfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_generic_ipaddressfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_integerfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_multiplechoicefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_regexfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_splitdatetimefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_subclassing_errorlist (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_timefield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
test_urlfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase) ... ok
======================================================================
FAIL: test_modelchoicefield_value_placeholder (forms_tests.tests.test_error_messages.ModelChoiceFieldErrorMessagesTestCase)
----------------------------------------------------------------------
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/forms_tests/tests/test_error_messages.py", line 319, in test_modelchoicefield_value_placeholder
self.assertFormErrors(
File "/opt/django__django/tests/forms_tests/tests/test_error_messages.py", line 21, in assertFormErrors
self.assertEqual(cm.exception.messages, expected)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 912, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 1118, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 1100, in assertSequenceEqual
self.fail(msg)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 753, in fail
raise self.failureException(msg)
AssertionError: Lists differ: ['"%(value)s" is not one of the available choices.'] != ['"invalid" is not one of the available choices.']
First differing element 0:
'"%(value)s" is not one of the available choices.'
'"invalid" is not one of the available choices.'
- ['"%(value)s" is not one of the available choices.']
? ^^ ^^^^
+ ['"invalid" is not one of the available choices.']
? ^^ ^^
----------------------------------------------------------------------
Ran 20 tests in 0.250s
FAILED (failures=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')...
[django__django__4.0] [django__django-13933] Return Code: 1
>>>>> Some Tests Failed
[django__django__4.0] [django__django-13933] Test script run successful