-
Notifications
You must be signed in to change notification settings - Fork 24
/
pytest-dev__pytest-8365.gpt-4-0125-preview.eval.log
470 lines (391 loc) · 26.5 KB
/
pytest-dev__pytest-8365.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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Task Metadata:
- Instance ID: pytest-dev__pytest-8365
- Testbed: pytest-dev__pytest__6.3
-
- Evaluation Model: gpt-4-0125-preview
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: git -c advice.detachedHead=false checkout 4964b468c83c06971eb743fbc57cc404f760c573
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Std. Output:
Previous HEAD position was 634312b14 Merge pull request #8633 from The-Compiler/ci-colors
HEAD is now at 4964b468c Merge pull request #8354 from feanil/patch-1
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 0
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-8365_pred_try.patch
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Std. Output:
Checking patch src/_pytest/tmpdir.py...
Applied patch src/_pytest/tmpdir.py cleanly.
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 0
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: git apply -v -R /home/swe-bench/temp_pytest-dev__pytest-8365_pred_try.patch
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Std. Output:
Checking patch src/_pytest/tmpdir.py...
Applied patch src/_pytest/tmpdir.py cleanly.
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 0
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-8365_pred.patch
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Std. Output:
Checking patch src/_pytest/tmpdir.py...
Applied patch src/_pytest/tmpdir.py cleanly.
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 0
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: git restore testing/test_tmpdir.py
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Std. Output:
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 0
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: git apply -v /home/swe-bench/temp_pytest-dev__pytest-8365_test.patch
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Subprocess args: {"cwd": "/home/swe-bench/pytest-dev__pytest", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Std. Output:
Checking patch testing/test_tmpdir.py...
Applied patch testing/test_tmpdir.py cleanly.
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 0
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: conda run -n pytest-dev__pytest__6.3 pytest -rA testing/test_tmpdir.py;
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Command: conda run -n pytest-dev__pytest__6.3 pytest -rA testing/test_tmpdir.py
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] 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__6.3] [pytest-dev__pytest-8365] Std. Output:
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /home/swe-bench/pytest-dev__pytest, configfile: pyproject.toml
collected 34 items
testing/test_tmpdir.py ...s............F...F.FF.......... [100%]
=================================== FAILURES ===================================
_____________ test_tmp_path_factory_handles_invalid_dir_characters _____________
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7ac59deaaeb0>, _basetemp=None)
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ac59defe040>
def test_tmp_path_factory_handles_invalid_dir_characters(
tmp_path_factory: TempPathFactory, monkeypatch: MonkeyPatch
) -> None:
monkeypatch.setattr("getpass.getuser", lambda: "os/<:*?;>agnostic")
# _basetemp / _given_basetemp are cached / set in parallel runs, patch them
monkeypatch.setattr(tmp_path_factory, "_basetemp", None)
monkeypatch.setattr(tmp_path_factory, "_given_basetemp", None)
> p = tmp_path_factory.getbasetemp()
testing/test_tmpdir.py:458:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/_pytest/tmpdir.py:122: in getbasetemp
rootdir.mkdir(exist_ok=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/tmp/pytest-of-os/<:*?;>agnostic'), mode = 511
parents = False, exist_ok = True
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
"""
Create a new directory at this given path.
"""
try:
> self._accessor.mkdir(self, mode)
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-os/<:*?;>agnostic'
../miniconda3/envs/pytest-dev__pytest__6.3/lib/python3.9/pathlib.py:1323: FileNotFoundError
_________________________ test_mktemp[/mypath1-False] __________________________
pytester = <Pytester PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp2')>
basename = '/mypath1', is_ok = False
@pytest.mark.parametrize("basename, is_ok", testdata)
def test_mktemp(pytester: Pytester, basename: str, is_ok: bool) -> None:
mytemp = pytester.mkdir("mytemp")
p = pytester.makepyfile(
"""
def test_abs_path(tmpdir_factory):
tmpdir_factory.mktemp('{}', numbered=False)
""".format(
basename
)
)
result = pytester.runpytest(p, "--basetemp=%s" % mytemp)
if is_ok:
assert result.ret == 0
assert mytemp.joinpath(basename).exists()
else:
> assert result.ret == 1
E assert <ExitCode.OK: 0> == 1
E + where <ExitCode.OK: 0> = <RunResult ret=ExitCode.OK len(stdout.lines)=8 len(stderr.lines)=0 duration=0.02s>.ret
/home/swe-bench/pytest-dev__pytest/testing/test_tmpdir.py:119: AssertionError
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp2
collected 1 item
test_mktemp.py . [100%]
============================== 1 passed in 0.01s ===============================
________________________ test_mktemp[../mypath3-False] _________________________
pytester = <Pytester PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp4')>
basename = '../mypath3', is_ok = False
@pytest.mark.parametrize("basename, is_ok", testdata)
def test_mktemp(pytester: Pytester, basename: str, is_ok: bool) -> None:
mytemp = pytester.mkdir("mytemp")
p = pytester.makepyfile(
"""
def test_abs_path(tmpdir_factory):
tmpdir_factory.mktemp('{}', numbered=False)
""".format(
basename
)
)
result = pytester.runpytest(p, "--basetemp=%s" % mytemp)
if is_ok:
assert result.ret == 0
assert mytemp.joinpath(basename).exists()
else:
> assert result.ret == 1
E assert <ExitCode.OK: 0> == 1
E + where <ExitCode.OK: 0> = <RunResult ret=ExitCode.OK len(stdout.lines)=8 len(stderr.lines)=0 duration=0.02s>.ret
/home/swe-bench/pytest-dev__pytest/testing/test_tmpdir.py:119: AssertionError
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp4
collected 1 item
test_mktemp.py . [100%]
============================== 1 passed in 0.01s ===============================
_______________________ test_mktemp[../../mypath4-False] _______________________
pytester = <Pytester PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp5')>
basename = '../../mypath4', is_ok = False
@pytest.mark.parametrize("basename, is_ok", testdata)
def test_mktemp(pytester: Pytester, basename: str, is_ok: bool) -> None:
mytemp = pytester.mkdir("mytemp")
p = pytester.makepyfile(
"""
def test_abs_path(tmpdir_factory):
tmpdir_factory.mktemp('{}', numbered=False)
""".format(
basename
)
)
result = pytester.runpytest(p, "--basetemp=%s" % mytemp)
if is_ok:
assert result.ret == 0
assert mytemp.joinpath(basename).exists()
else:
> assert result.ret == 1
E assert <ExitCode.OK: 0> == 1
E + where <ExitCode.OK: 0> = <RunResult ret=ExitCode.OK len(stdout.lines)=8 len(stderr.lines)=0 duration=0.02s>.ret
/home/swe-bench/pytest-dev__pytest/testing/test_tmpdir.py:119: AssertionError
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp5
collected 1 item
test_mktemp.py . [100%]
============================== 1 passed in 0.00s ===============================
==================================== PASSES ====================================
______________________ TestNumberedDir.test_cleanup_keep _______________________
----------------------------- Captured stdout call -----------------------------
/tmp/pytest-of-swe-bench/pytest-0/test_cleanup_keep0/fun-9 /tmp/pytest-of-swe-bench/pytest-0/test_cleanup_keep0/fun-8
_____________________________ test_tmpdir_fixture ______________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmpdir_fixture0
collected 1 item
tmpdir_fixture.py . [100%]
============================== 1 passed in 0.01s ===============================
_____________ TestConfigTmpdir.test_getbasetemp_custom_removes_old _____________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_getbasetemp_custom_removes_old0
collected 1 item
test_getbasetemp_custom_removes_old.py . [100%]
============================== 1 passed in 0.01s ===============================
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_getbasetemp_custom_removes_old0
collected 1 item
test_getbasetemp_custom_removes_old.py . [100%]
============================== 1 passed in 0.00s ===============================
___________________________ test_mktemp[mypath-True] ___________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp1
collected 1 item
test_mktemp.py . [100%]
============================== 1 passed in 0.01s ===============================
_________________________ test_mktemp[./mypath1-True] __________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp3
collected 1 item
test_mktemp.py . [100%]
============================== 1 passed in 0.01s ===============================
________________________ test_mktemp[mypath5/..-False] _________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp6
collected 1 item
test_mktemp.py F [100%]
=================================== FAILURES ===================================
________________________________ test_abs_path _________________________________
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mkte....TagTracerSub object at 0x7ac59d740be0>, _basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp6/mytemp')))
def test_abs_path(tmpdir_factory):
> tmpdir_factory.mktemp('mypath5/..', numbered=False)
test_mktemp.py:2:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/swe-bench/pytest-dev__pytest/src/_pytest/tmpdir.py:148: in mktemp
return py.path.local(self._tmppath_factory.mktemp(basename, numbered).resolve())
/home/swe-bench/pytest-dev__pytest/src/_pytest/tmpdir.py:97: in mktemp
basename = self._ensure_relative_to_basetemp(basename)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = TempPathFactory(_given_basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp6/mytemp'), _trace=<pluggy._tr...g.TagTracerSub object at 0x7ac59d740be0>, _basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp6/mytemp'))
basename = '.'
def _ensure_relative_to_basetemp(self, basename: str) -> str:
import re
basename = os.path.normpath(basename)
# Sanitize basename to remove illegal characters for directory names
basename = re.sub(r'[\\/*?:"<>|]', "", basename)
if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> raise ValueError(f"{basename} is not a normalized and relative path")
E ValueError: . is not a normalized and relative path
/home/swe-bench/pytest-dev__pytest/src/_pytest/tmpdir.py:78: ValueError
=========================== short test summary info ============================
FAILED test_mktemp.py::test_abs_path - ValueError: . is not a normalized and ...
============================== 1 failed in 0.02s ===============================
_____________________ test_mktemp[mypath6/../mypath6-True] _____________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp7
collected 1 item
test_mktemp.py . [100%]
============================== 1 passed in 0.01s ===============================
___________________ test_mktemp[mypath7/../mypath7/..-False] ___________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_mktemp8
collected 1 item
test_mktemp.py F [100%]
=================================== FAILURES ===================================
________________________________ test_abs_path _________________________________
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mkte....TagTracerSub object at 0x7ac59d6e7550>, _basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp8/mytemp')))
def test_abs_path(tmpdir_factory):
> tmpdir_factory.mktemp('mypath7/../mypath7/..', numbered=False)
test_mktemp.py:2:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/swe-bench/pytest-dev__pytest/src/_pytest/tmpdir.py:148: in mktemp
return py.path.local(self._tmppath_factory.mktemp(basename, numbered).resolve())
/home/swe-bench/pytest-dev__pytest/src/_pytest/tmpdir.py:97: in mktemp
basename = self._ensure_relative_to_basetemp(basename)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = TempPathFactory(_given_basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp8/mytemp'), _trace=<pluggy._tr...g.TagTracerSub object at 0x7ac59d6e7550>, _basetemp=PosixPath('/tmp/pytest-of-swe-bench/pytest-0/test_mktemp8/mytemp'))
basename = '.'
def _ensure_relative_to_basetemp(self, basename: str) -> str:
import re
basename = os.path.normpath(basename)
# Sanitize basename to remove illegal characters for directory names
basename = re.sub(r'[\\/*?:"<>|]', "", basename)
if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> raise ValueError(f"{basename} is not a normalized and relative path")
E ValueError: . is not a normalized and relative path
/home/swe-bench/pytest-dev__pytest/src/_pytest/tmpdir.py:78: ValueError
=========================== short test summary info ============================
FAILED test_mktemp.py::test_abs_path - ValueError: . is not a normalized and ...
============================== 1 failed in 0.01s ===============================
________________________ test_tmpdir_always_is_realpath ________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmpdir_always_is_realpath0
collected 1 item
test_tmpdir_always_is_realpath.py .
============================== 1 passed in 0.01s ===============================
_______________________ test_tmp_path_always_is_realpath _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmp_path_always_is_realpath0
collected 1 item
test_tmp_path_always_is_realpath.py . [100%]
============================== 1 passed in 0.01s ===============================
___________________ test_tmpdir_too_long_on_parametrization ____________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmpdir_too_long_on_parametrization0
collected 1 item
test_tmpdir_too_long_on_parametrization.py . [100%]
============================== 1 passed in 0.01s ===============================
_____________________________ test_tmpdir_factory ______________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmpdir_factory0
collected 1 item
test_tmpdir_factory.py . [100%]
============================== 1 passed in 0.01s ===============================
_________________________ test_tmpdir_fallback_tox_env _________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmpdir_fallback_tox_env0
collected 1 item
test_tmpdir_fallback_tox_env.py . [100%]
============================== 1 passed in 0.01s ===============================
______________________ test_tmpdir_fallback_uid_not_found ______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_tmpdir_fallback_uid_not_found0
collected 1 item
test_tmpdir_fallback_uid_not_found.py . [100%]
============================== 1 passed in 0.01s ===============================
______________________ test_basetemp_with_read_only_files ______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_basetemp_with_read_only_files0
collected 1 item
test_basetemp_with_read_only_files.py . [100%]
============================== 1 passed in 0.01s ===============================
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.3.0.dev425+g634312b14, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/pytest-of-swe-bench/pytest-0/test_basetemp_with_read_only_files0
collected 1 item
test_basetemp_with_read_only_files.py . [100%]
============================== 1 passed in 0.01s ===============================
=========================== short test summary info ============================
PASSED testing/test_tmpdir.py::TestTempdirHandler::test_mktemp
PASSED testing/test_tmpdir.py::TestTempdirHandler::test_tmppath_relative_basetemp_absolute
PASSED testing/test_tmpdir.py::test_get_user_uid_not_found
PASSED testing/test_tmpdir.py::TestNumberedDir::test_make
PASSED testing/test_tmpdir.py::TestNumberedDir::test_cleanup_lock_create
PASSED testing/test_tmpdir.py::TestNumberedDir::test_lock_register_cleanup_removal
PASSED testing/test_tmpdir.py::TestNumberedDir::test_cleanup_keep
PASSED testing/test_tmpdir.py::TestNumberedDir::test_cleanup_locked
PASSED testing/test_tmpdir.py::TestNumberedDir::test_cleanup_ignores_symlink
PASSED testing/test_tmpdir.py::TestNumberedDir::test_removal_accepts_lock
PASSED testing/test_tmpdir.py::TestRmRf::test_rm_rf
PASSED testing/test_tmpdir.py::TestRmRf::test_rm_rf_with_read_only_file
PASSED testing/test_tmpdir.py::TestRmRf::test_rm_rf_with_read_only_directory
PASSED testing/test_tmpdir.py::TestRmRf::test_on_rm_rf_error
PASSED testing/test_tmpdir.py::test_tmpdir_equals_tmp_path
PASSED testing/test_tmpdir.py::test_tmpdir_fixture
PASSED testing/test_tmpdir.py::TestConfigTmpdir::test_getbasetemp_custom_removes_old
PASSED testing/test_tmpdir.py::test_mktemp[mypath-True]
PASSED testing/test_tmpdir.py::test_mktemp[./mypath1-True]
PASSED testing/test_tmpdir.py::test_mktemp[mypath5/..-False]
PASSED testing/test_tmpdir.py::test_mktemp[mypath6/../mypath6-True]
PASSED testing/test_tmpdir.py::test_mktemp[mypath7/../mypath7/..-False]
PASSED testing/test_tmpdir.py::test_tmpdir_always_is_realpath
PASSED testing/test_tmpdir.py::test_tmp_path_always_is_realpath
PASSED testing/test_tmpdir.py::test_tmpdir_too_long_on_parametrization
PASSED testing/test_tmpdir.py::test_tmpdir_factory
PASSED testing/test_tmpdir.py::test_tmpdir_fallback_tox_env
PASSED testing/test_tmpdir.py::test_tmpdir_fallback_uid_not_found
PASSED testing/test_tmpdir.py::test_basetemp_with_read_only_files
SKIPPED [1] testing/test_tmpdir.py:239: win only
FAILED testing/test_tmpdir.py::test_tmp_path_factory_handles_invalid_dir_characters
FAILED testing/test_tmpdir.py::test_mktemp[/mypath1-False] - assert <ExitCode...
FAILED testing/test_tmpdir.py::test_mktemp[../mypath3-False] - assert <ExitCo...
FAILED testing/test_tmpdir.py::test_mktemp[../../mypath4-False] - assert <Exi...
=================== 4 failed, 29 passed, 1 skipped in 0.71s ====================
ERROR conda.cli.main_run:execute(124): `conda run pytest -rA testing/test_tmpdir.py` failed. (See above for error)
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Return Code: 1
>>>>> Some Tests Failed
[pytest-dev__pytest__6.3] [pytest-dev__pytest-8365] Test script run successful