-
Notifications
You must be signed in to change notification settings - Fork 24
/
psf__requests-1963.gpt-4-0125-preview.eval.log
250 lines (225 loc) · 15.9 KB
/
psf__requests-1963.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
[psf__requests__2.3] [psf__requests-1963] Task Metadata:
- Instance ID: psf__requests-1963
- Testbed: psf__requests__2.3
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.9.19
[psf__requests__2.3] [psf__requests-1963] Command: git -c advice.detachedHead=false checkout 110048f9837f8441ea536804115e80b69f400277
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
Previous HEAD position was 3eb69be8 Merge pull request #2148 from romanlevin/handle-socket-error-in-iter_content
HEAD is now at 110048f9 Merge pull request #1916 from schlamar/accept-encoding
[psf__requests__2.3] [psf__requests-1963] Return Code: 0
[psf__requests__2.3] [psf__requests-1963] Command: git apply -v /opt/temp_psf__requests-1963_pred_try.patch
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
Checking patch requests/sessions.py...
Applied patch requests/sessions.py cleanly.
[psf__requests__2.3] [psf__requests-1963] Return Code: 0
[psf__requests__2.3] [psf__requests-1963] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[psf__requests__2.3] [psf__requests-1963] Command: git apply -v -R /opt/temp_psf__requests-1963_pred_try.patch
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
Checking patch requests/sessions.py...
Applied patch requests/sessions.py cleanly.
[psf__requests__2.3] [psf__requests-1963] Return Code: 0
[psf__requests__2.3] [psf__requests-1963] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[psf__requests__2.3] [psf__requests-1963] Command: git apply -v /opt/temp_psf__requests-1963_pred.patch
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
Checking patch requests/sessions.py...
Applied patch requests/sessions.py cleanly.
[psf__requests__2.3] [psf__requests-1963] Return Code: 0
[psf__requests__2.3] [psf__requests-1963] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[psf__requests__2.3] [psf__requests-1963] Command: git restore test_requests.py
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
[psf__requests__2.3] [psf__requests-1963] Return Code: 0
[psf__requests__2.3] [psf__requests-1963] Command: git apply -v /opt/temp_psf__requests-1963_test.patch
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
Checking patch test_requests.py...
Applied patch test_requests.py cleanly.
[psf__requests__2.3] [psf__requests-1963] Return Code: 0
[psf__requests__2.3] [psf__requests-1963] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: pytest --no-header -rA --tb=no -p no:cacheprovider test_requests.py;
[psf__requests__2.3] [psf__requests-1963] Command: pytest --no-header -rA --tb=no -p no:cacheprovider test_requests.py
[psf__requests__2.3] [psf__requests-1963] Subprocess args: {"cwd": "/opt/psf__requests", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[psf__requests__2.3] [psf__requests-1963] Std. Output:
============================= test session starts ==============================
collected 121 items
test_requests.py ....................F.................................. [ 45%]
.........F.......................................................F [100%]
=============================== warnings summary ===============================
requests/packages/urllib3/connectionpool.py:385
/opt/psf__requests/requests/packages/urllib3/connectionpool.py:385: DeprecationWarning: invalid escape sequence \*
"""
requests/packages/urllib3/connectionpool.py:664
/opt/psf__requests/requests/packages/urllib3/connectionpool.py:664: DeprecationWarning: invalid escape sequence \*
"""
requests/packages/urllib3/poolmanager.py:36
/opt/psf__requests/requests/packages/urllib3/poolmanager.py:36: DeprecationWarning: invalid escape sequence \*
"""
requests/packages/urllib3/_collections.py:7
/opt/psf__requests/requests/packages/urllib3/_collections.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import MutableMapping
requests/models.py:741
/opt/psf__requests/requests/models.py:741: DeprecationWarning: invalid escape sequence \*
"""Returns the json-encoded content of a response, if any.
requests/sessions.py:413
/opt/psf__requests/requests/sessions.py:413: DeprecationWarning: invalid escape sequence \*
"""Sends a GET request. Returns :class:`Response` object.
requests/sessions.py:423
/opt/psf__requests/requests/sessions.py:423: DeprecationWarning: invalid escape sequence \*
"""Sends a OPTIONS request. Returns :class:`Response` object.
requests/sessions.py:433
/opt/psf__requests/requests/sessions.py:433: DeprecationWarning: invalid escape sequence \*
"""Sends a HEAD request. Returns :class:`Response` object.
requests/sessions.py:443
/opt/psf__requests/requests/sessions.py:443: DeprecationWarning: invalid escape sequence \*
"""Sends a POST request. Returns :class:`Response` object.
requests/sessions.py:453
/opt/psf__requests/requests/sessions.py:453: DeprecationWarning: invalid escape sequence \*
"""Sends a PUT request. Returns :class:`Response` object.
requests/sessions.py:463
/opt/psf__requests/requests/sessions.py:463: DeprecationWarning: invalid escape sequence \*
"""Sends a PATCH request. Returns :class:`Response` object.
requests/sessions.py:473
/opt/psf__requests/requests/sessions.py:473: DeprecationWarning: invalid escape sequence \*
"""Sends a DELETE request. Returns :class:`Response` object.
requests/sessions.py:12
/opt/psf__requests/requests/sessions.py:12: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Mapping
test_requests.py::RequestsTestCase::test_BASICAUTH_TUPLE_HTTP_200_OK_GET
/opt/psf__requests/requests/models.py:164: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
if isinstance(hook, collections.Callable):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
PASSED test_requests.py::RequestsTestCase::test_BASICAUTH_TUPLE_HTTP_200_OK_GET
PASSED test_requests.py::RequestsTestCase::test_DIGESTAUTH_QUOTES_QOP_VALUE
PASSED test_requests.py::RequestsTestCase::test_DIGESTAUTH_WRONG_HTTP_401_GET
PASSED test_requests.py::RequestsTestCase::test_DIGEST_AUTH_RETURNS_COOKIE
PASSED test_requests.py::RequestsTestCase::test_DIGEST_AUTH_SETS_SESSION_COOKIES
PASSED test_requests.py::RequestsTestCase::test_DIGEST_HTTP_200_OK_GET
PASSED test_requests.py::RequestsTestCase::test_DIGEST_STREAM
PASSED test_requests.py::RequestsTestCase::test_HTTP_200_OK_GET_ALTERNATIVE
PASSED test_requests.py::RequestsTestCase::test_HTTP_200_OK_GET_WITH_MIXED_PARAMS
PASSED test_requests.py::RequestsTestCase::test_HTTP_200_OK_GET_WITH_PARAMS
PASSED test_requests.py::RequestsTestCase::test_HTTP_200_OK_HEAD
PASSED test_requests.py::RequestsTestCase::test_HTTP_200_OK_PUT
PASSED test_requests.py::RequestsTestCase::test_HTTP_302_ALLOW_REDIRECT_GET
PASSED test_requests.py::RequestsTestCase::test_POSTBIN_GET_POST_FILES
PASSED test_requests.py::RequestsTestCase::test_POSTBIN_GET_POST_FILES_WITH_DATA
PASSED test_requests.py::RequestsTestCase::test_autoset_header_values_are_native
PASSED test_requests.py::RequestsTestCase::test_basic_building
PASSED test_requests.py::RequestsTestCase::test_basicauth_with_netrc
PASSED test_requests.py::RequestsTestCase::test_can_send_nonstring_objects_with_files
PASSED test_requests.py::RequestsTestCase::test_cannot_send_unprepared_requests
PASSED test_requests.py::RequestsTestCase::test_cookie_as_dict_items
PASSED test_requests.py::RequestsTestCase::test_cookie_as_dict_keeps_items
PASSED test_requests.py::RequestsTestCase::test_cookie_as_dict_keeps_len
PASSED test_requests.py::RequestsTestCase::test_cookie_as_dict_keys
PASSED test_requests.py::RequestsTestCase::test_cookie_as_dict_values
PASSED test_requests.py::RequestsTestCase::test_cookie_parameters
PASSED test_requests.py::RequestsTestCase::test_cookie_persists_via_api
PASSED test_requests.py::RequestsTestCase::test_cookie_quote_wrapped
PASSED test_requests.py::RequestsTestCase::test_cookie_removed_on_expire
PASSED test_requests.py::RequestsTestCase::test_cookie_sent_on_redirect
PASSED test_requests.py::RequestsTestCase::test_custom_content_type
PASSED test_requests.py::RequestsTestCase::test_decompress_gzip
PASSED test_requests.py::RequestsTestCase::test_different_encodings_dont_break_post
PASSED test_requests.py::RequestsTestCase::test_entry_points
PASSED test_requests.py::RequestsTestCase::test_fixes_1329
PASSED test_requests.py::RequestsTestCase::test_generic_cookiejar_works
PASSED test_requests.py::RequestsTestCase::test_get_auth_from_url
PASSED test_requests.py::RequestsTestCase::test_get_auth_from_url_encoded_hashes
PASSED test_requests.py::RequestsTestCase::test_get_auth_from_url_encoded_spaces
PASSED test_requests.py::RequestsTestCase::test_get_auth_from_url_not_encoded_spaces
PASSED test_requests.py::RequestsTestCase::test_get_auth_from_url_percent_chars
PASSED test_requests.py::RequestsTestCase::test_header_keys_are_native
PASSED test_requests.py::RequestsTestCase::test_header_remove_is_case_insensitive
PASSED test_requests.py::RequestsTestCase::test_headers_on_session_with_None_are_not_sent
PASSED test_requests.py::RequestsTestCase::test_hook_receives_request_arguments
PASSED test_requests.py::RequestsTestCase::test_http_error
PASSED test_requests.py::RequestsTestCase::test_invalid_url
PASSED test_requests.py::RequestsTestCase::test_links
PASSED test_requests.py::RequestsTestCase::test_long_authinfo_in_url
PASSED test_requests.py::RequestsTestCase::test_mixed_case_scheme_acceptable
PASSED test_requests.py::RequestsTestCase::test_no_content_length
PASSED test_requests.py::RequestsTestCase::test_oddball_schemes_dont_check_URLs
PASSED test_requests.py::RequestsTestCase::test_param_cookiejar_works
PASSED test_requests.py::RequestsTestCase::test_params_are_added_before_fragment
PASSED test_requests.py::RequestsTestCase::test_params_are_merged_case_sensitive
PASSED test_requests.py::RequestsTestCase::test_path_is_not_double_encoded
PASSED test_requests.py::RequestsTestCase::test_prepared_from_session
PASSED test_requests.py::RequestsTestCase::test_prepared_request_hook
PASSED test_requests.py::RequestsTestCase::test_pyopenssl_redirect
PASSED test_requests.py::RequestsTestCase::test_request_and_response_are_pickleable
PASSED test_requests.py::RequestsTestCase::test_request_cookie_overrides_session_cookie
PASSED test_requests.py::RequestsTestCase::test_request_cookies_not_persisted
PASSED test_requests.py::RequestsTestCase::test_request_ok_set
PASSED test_requests.py::RequestsTestCase::test_response_is_iterable
PASSED test_requests.py::RequestsTestCase::test_session_hooks_are_overriden_by_request_hooks
PASSED test_requests.py::RequestsTestCase::test_session_hooks_are_used_with_no_request_hooks
PASSED test_requests.py::RequestsTestCase::test_session_pickling
PASSED test_requests.py::RequestsTestCase::test_set_cookie_on_301
PASSED test_requests.py::RequestsTestCase::test_status_raising
PASSED test_requests.py::RequestsTestCase::test_time_elapsed_blank
PASSED test_requests.py::RequestsTestCase::test_transport_adapter_ordering
PASSED test_requests.py::RequestsTestCase::test_unicode_get
PASSED test_requests.py::RequestsTestCase::test_unicode_header_name
PASSED test_requests.py::RequestsTestCase::test_unicode_method_name
PASSED test_requests.py::RequestsTestCase::test_unicode_multipart_post
PASSED test_requests.py::RequestsTestCase::test_unicode_multipart_post_fieldnames
PASSED test_requests.py::RequestsTestCase::test_uppercase_scheme_redirect
PASSED test_requests.py::RequestsTestCase::test_urlencoded_get_query_multivalued_param
PASSED test_requests.py::RequestsTestCase::test_user_agent_transfers
PASSED test_requests.py::TestContentEncodingDetection::test_html4_pragma
PASSED test_requests.py::TestContentEncodingDetection::test_html_charset
PASSED test_requests.py::TestContentEncodingDetection::test_none
PASSED test_requests.py::TestContentEncodingDetection::test_precedence
PASSED test_requests.py::TestContentEncodingDetection::test_xhtml_pragma
PASSED test_requests.py::TestContentEncodingDetection::test_xml
PASSED test_requests.py::TestCaseInsensitiveDict::test_contains
PASSED test_requests.py::TestCaseInsensitiveDict::test_delitem
PASSED test_requests.py::TestCaseInsensitiveDict::test_docstring_example
PASSED test_requests.py::TestCaseInsensitiveDict::test_equality
PASSED test_requests.py::TestCaseInsensitiveDict::test_fixes_649
PASSED test_requests.py::TestCaseInsensitiveDict::test_get
PASSED test_requests.py::TestCaseInsensitiveDict::test_getitem
PASSED test_requests.py::TestCaseInsensitiveDict::test_iter
PASSED test_requests.py::TestCaseInsensitiveDict::test_iterable_init
PASSED test_requests.py::TestCaseInsensitiveDict::test_kwargs_init
PASSED test_requests.py::TestCaseInsensitiveDict::test_len
PASSED test_requests.py::TestCaseInsensitiveDict::test_lower_items
PASSED test_requests.py::TestCaseInsensitiveDict::test_mapping_init
PASSED test_requests.py::TestCaseInsensitiveDict::test_preserve_key_case
PASSED test_requests.py::TestCaseInsensitiveDict::test_preserve_last_key_case
PASSED test_requests.py::TestCaseInsensitiveDict::test_setdefault
PASSED test_requests.py::TestCaseInsensitiveDict::test_update
PASSED test_requests.py::TestCaseInsensitiveDict::test_update_retains_unchanged
PASSED test_requests.py::UtilsTestCase::test_address_in_network
PASSED test_requests.py::UtilsTestCase::test_dotted_netmask
PASSED test_requests.py::UtilsTestCase::test_get_auth_from_url
PASSED test_requests.py::UtilsTestCase::test_get_environ_proxies
PASSED test_requests.py::UtilsTestCase::test_get_environ_proxies_ip_ranges
PASSED test_requests.py::UtilsTestCase::test_is_ipv4_address
PASSED test_requests.py::UtilsTestCase::test_is_valid_cidr
PASSED test_requests.py::UtilsTestCase::test_super_len_io_streams
PASSED test_requests.py::TestMorselToCookieExpires::test_expires_invalid_int
PASSED test_requests.py::TestMorselToCookieExpires::test_expires_invalid_str
PASSED test_requests.py::TestMorselToCookieExpires::test_expires_none
PASSED test_requests.py::TestMorselToCookieExpires::test_expires_valid_str
PASSED test_requests.py::TestMorselToCookieMaxAge::test_max_age_invalid_str
PASSED test_requests.py::TestMorselToCookieMaxAge::test_max_age_valid_int
PASSED test_requests.py::TestTimeout::test_stream_timeout
FAILED test_requests.py::RequestsTestCase::test_conflicting_post_params - Typ...
FAILED test_requests.py::RequestsTestCase::test_requests_in_history_are_not_overridden
FAILED test_requests.py::TestRedirects::test_requests_are_updated_each_time
================= 3 failed, 118 passed, 14 warnings in 31.57s ==================
[psf__requests__2.3] [psf__requests-1963] Return Code: 1
>>>>> Some Tests Failed
[psf__requests__2.3] [psf__requests-1963] Test script run successful