-
Notifications
You must be signed in to change notification settings - Fork 21
/
pytest-dev__pytest-7220.gpt-4-0125-preview.eval.log
243 lines (213 loc) · 16 KB
/
pytest-dev__pytest-7220.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
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Task Metadata:
- Instance ID: pytest-dev__pytest-7220
- Testbed: pytest-dev__pytest__5.4
-
- Evaluation Model: gpt-4-0125-preview
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: git -c advice.detachedHead=false checkout 56bf819c2f4eaf8b36bd8c42c06bb59d5a3bfc0f
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
Previous HEAD position was 678c1a074 assertion: improve diff output of recursive dataclass/attrs
HEAD is now at 56bf819c2 Do not call TestCase.tearDown for skipped tests (#7236)
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Running pre-test command: pip install -e .
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: conda run -n pytest-dev__pytest__5.4 pip install -e .
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": true, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
Obtaining file:///home/swe-bench/pytest-dev__pytest
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Getting requirements to build editable: started
Getting requirements to build editable: finished with status 'done'
Preparing editable metadata (pyproject.toml): started
Preparing editable metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: py>=1.5.0 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (1.11.0)
Requirement already satisfied: packaging in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (23.1)
Requirement already satisfied: attrs>=17.4.0 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (23.1.0)
Requirement already satisfied: more-itertools>=4.0.0 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (10.1.0)
Requirement already satisfied: pluggy<1.0,>=0.12 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (0.13.1)
Requirement already satisfied: wcwidth in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (0.2.6)
Building wheels for collected packages: pytest
Building editable for pytest (pyproject.toml): started
Building editable for pytest (pyproject.toml): finished with status 'done'
Created wheel for pytest: filename=pytest-5.4.1.dev380+g56bf819c2-0.editable-py3-none-any.whl size=7990 sha256=b9508162c82cea5a0b3e7391604fa99efd7a34519f1e9b4c542cece485ac8df2
Stored in directory: /tmp/pip-ephem-wheel-cache-wfrp57xj/wheels/a6/44/a9/b1a742a6dfeb5fa7a6a187e5f4be92c62c5af751ce837b5b46
Successfully built pytest
Installing collected packages: pytest
Attempting uninstall: pytest
Found existing installation: pytest 5.4.1.dev626+g678c1a074
Uninstalling pytest-5.4.1.dev626+g678c1a074:
Successfully uninstalled pytest-5.4.1.dev626+g678c1a074
Successfully installed pytest-5.4.1.dev380+g56bf819c2
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
Pre-installation Command: conda run -n pytest-dev__pytest__5.4 pip install -e .
Std. Output: Obtaining file:///home/swe-bench/pytest-dev__pytest
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Getting requirements to build editable: started
Getting requirements to build editable: finished with status 'done'
Preparing editable metadata (pyproject.toml): started
Preparing editable metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: py>=1.5.0 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (1.11.0)
Requirement already satisfied: packaging in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (23.1)
Requirement already satisfied: attrs>=17.4.0 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (23.1.0)
Requirement already satisfied: more-itertools>=4.0.0 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (10.1.0)
Requirement already satisfied: pluggy<1.0,>=0.12 in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (0.13.1)
Requirement already satisfied: wcwidth in /home/swe-bench/miniconda3/envs/pytest-dev__pytest__5.4/lib/python3.9/site-packages (from pytest==5.4.1.dev380+g56bf819c2) (0.2.6)
Building wheels for collected packages: pytest
Building editable for pytest (pyproject.toml): started
Building editable for pytest (pyproject.toml): finished with status 'done'
Created wheel for pytest: filename=pytest-5.4.1.dev380+g56bf819c2-0.editable-py3-none-any.whl size=7990 sha256=b9508162c82cea5a0b3e7391604fa99efd7a34519f1e9b4c542cece485ac8df2
Stored in directory: /tmp/pip-ephem-wheel-cache-wfrp57xj/wheels/a6/44/a9/b1a742a6dfeb5fa7a6a187e5f4be92c62c5af751ce837b5b46
Successfully built pytest
Installing collected packages: pytest
Attempting uninstall: pytest
Found existing installation: pytest 5.4.1.dev626+g678c1a074
Uninstalling pytest-5.4.1.dev626+g678c1a074:
Successfully uninstalled pytest-5.4.1.dev626+g678c1a074
Successfully installed pytest-5.4.1.dev380+g56bf819c2
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-7220_pred_try.patch
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
/home/swe-bench/temp_pytest-dev__pytest-7220_pred_try.patch:11: trailing whitespace.
/home/swe-bench/temp_pytest-dev__pytest-7220_pred_try.patch:16: trailing whitespace.
Checking patch src/_pytest/assertion/rewrite.py...
Applied patch src/_pytest/assertion/rewrite.py cleanly.
warning: 2 lines add whitespace errors.
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: git apply -v -R /home/swe-bench/temp_pytest-dev__pytest-7220_pred_try.patch
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
Checking patch src/_pytest/assertion/rewrite.py...
Applied patch src/_pytest/assertion/rewrite.py cleanly.
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-7220_pred.patch
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
/home/swe-bench/temp_pytest-dev__pytest-7220_pred.patch:11: trailing whitespace.
/home/swe-bench/temp_pytest-dev__pytest-7220_pred.patch:16: trailing whitespace.
Checking patch src/_pytest/assertion/rewrite.py...
Applied patch src/_pytest/assertion/rewrite.py cleanly.
warning: 2 lines add whitespace errors.
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: git restore testing/test_nodes.py
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-7220_test.patch
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
Checking patch testing/test_nodes.py...
Applied patch testing/test_nodes.py cleanly.
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 0
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: conda run -n pytest-dev__pytest__5.4 pytest -rA testing/test_nodes.py;
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Command: conda run -n pytest-dev__pytest__5.4 pytest -rA testing/test_nodes.py
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Std. Output:
ERROR conda.cli.main_run:execute(124): `conda run pytest -rA testing/test_nodes.py` failed. (See above for error)
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-5.4.1.dev380+g56bf819c2, py-1.11.0, pluggy-0.13.1
rootdir: /home/swe-bench/pytest-dev__pytest, inifile: tox.ini
collected 12 items
testing/test_nodes.py ...........F [100%]
=================================== FAILURES ===================================
________________________ test_failure_with_changed_cwd _________________________
testdir = <Testdir local('/tmp/pytest-of-swe-bench/pytest-0/test_failure_with_changed_cwd0')>
def test_failure_with_changed_cwd(testdir):
"""
Test failure lines should use absolute paths if cwd has changed since
invocation, so the path is correct (#6428).
"""
p = testdir.makepyfile(
"""
import os
import pytest
@pytest.fixture
def private_dir():
out_dir = 'ddd'
os.mkdir(out_dir)
old_dir = os.getcwd()
os.chdir(out_dir)
yield out_dir
os.chdir(old_dir)
def test_show_wrong_path(private_dir):
assert False
"""
)
result = testdir.runpytest()
> result.stdout.fnmatch_lines([str(p) + ":*: AssertionError", "*1 failed in *"])
E Failed: nomatch: '/tmp/pytest-of-swe-bench/pytest-0/test_failure_with_changed_cwd0/test_failure_with_changed_cwd.py:*: AssertionError'
E and: '============================= test session starts =============================='
E and: 'platform linux -- Python 3.9.19, pytest-5.4.1.dev380+g56bf819c2, py-1.11.0, pluggy-0.13.1'
E and: 'rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_failure_with_changed_cwd0'
E and: 'collected 1 item'
E and: ''
E and: 'test_failure_with_changed_cwd.py F [100%]'
E and: ''
E and: '=================================== FAILURES ==================================='
E and: '_____________________________ test_show_wrong_path _____________________________'
E and: ''
E and: "private_dir = 'ddd'"
E and: ''
E and: ' def test_show_wrong_path(private_dir):'
E and: '> assert False'
E and: 'E assert False'
E and: ''
E and: '../test_failure_with_changed_cwd.py:14: AssertionError'
E and: '=========================== short test summary info ============================'
E and: 'FAILED test_failure_with_changed_cwd.py::test_show_wrong_path - assert False'
E and: '============================== 1 failed in 0.02s ==============================='
E remains unmatched: '/tmp/pytest-of-swe-bench/pytest-0/test_failure_with_changed_cwd0/test_failure_with_changed_cwd.py:*: AssertionError'
/home/swe-bench/pytest-dev__pytest/testing/test_nodes.py:87: Failed
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-5.4.1.dev380+g56bf819c2, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_failure_with_changed_cwd0
collected 1 item
test_failure_with_changed_cwd.py F [100%]
=================================== FAILURES ===================================
_____________________________ test_show_wrong_path _____________________________
private_dir = 'ddd'
def test_show_wrong_path(private_dir):
> assert False
E assert False
../test_failure_with_changed_cwd.py:14: AssertionError
=========================== short test summary info ============================
FAILED test_failure_with_changed_cwd.py::test_show_wrong_path - assert False
============================== 1 failed in 0.02s ===============================
==================================== PASSES ====================================
_______________________ test_std_warn_not_pytestwarning ________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-5.4.1.dev380+g56bf819c2, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_std_warn_not_pytestwarning0
collected 0 items
============================ no tests ran in 0.00s =============================
=========================== short test summary info ============================
PASSED testing/test_nodes.py::test_ischildnode[--True]
PASSED testing/test_nodes.py::test_ischildnode[-foo-True]
PASSED testing/test_nodes.py::test_ischildnode[-foo/bar-True]
PASSED testing/test_nodes.py::test_ischildnode[-foo/bar::TestBaz-True]
PASSED testing/test_nodes.py::test_ischildnode[foo-food-False]
PASSED testing/test_nodes.py::test_ischildnode[foo/bar::TestBaz-foo/bar-False]
PASSED testing/test_nodes.py::test_ischildnode[foo/bar::TestBaz-foo/bar::TestBop-False]
PASSED testing/test_nodes.py::test_ischildnode[foo/bar-foo/bar::TestBop-True]
PASSED testing/test_nodes.py::test_node_from_parent_disallowed_arguments
PASSED testing/test_nodes.py::test__check_initialpaths_for_relpath
PASSED testing/test_nodes.py::test_std_warn_not_pytestwarning
FAILED testing/test_nodes.py::test_failure_with_changed_cwd - Failed: nomatch...
========================= 1 failed, 11 passed in 0.07s =========================
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Return Code: 1
>>>>> Some Tests Failed
[pytest-dev__pytest__5.4] [pytest-dev__pytest-7220] Test script run successful