On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   src/_pytest/capture.py
	modified:   testing/test_capture.py

no changes added to commit (use "git add" and/or "git commit -a")
commit 5063416b56961b3e09fbf280a7d54af458769bfa
Author: SWE-bench <setup@swebench.config>
Date:   Wed Sep 10 15:10:40 2025 +0000

    SWE-bench
diff --git a/src/_pytest/capture.py b/src/_pytest/capture.py
index 25eab7fd..b6569b98 100644
--- a/src/_pytest/capture.py
+++ b/src/_pytest/capture.py
@@ -447,6 +447,19 @@ class EncodedFile(object):
         """Ensure that file.name is a string."""
         return repr(self.buffer)
 
+    @property
+    def mode(self):
+        """Ensure that file.mode does not include 'b' for binary.
+        
+        EncodedFile is a text wrapper that accepts strings (in Python 3),
+        so the mode should not indicate binary mode even if the underlying
+        buffer is binary.
+        """
+        # Get the mode from the underlying buffer if it exists
+        buffer_mode = getattr(self.buffer, "mode", "")
+        # Remove 'b' from the mode string since we only accept text
+        return buffer_mode.replace("b", "")
+
     def __getattr__(self, name):
         return getattr(object.__getattribute__(self, "buffer"), name)
 
diff --git a/testing/test_capture.py b/testing/test_capture.py
index 5d80eb63..465678d3 100644
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -1574,3 +1574,41 @@ def test_typeerror_encodedfile_write(testdir):
         )
     else:
         assert result_with_capture.ret == 0
+
+
+def test_encodedfile_mode_without_binary():
+    """EncodedFile.mode should not include 'b' since it only accepts strings.
+    
+    This is a regression test for the issue where external libraries
+    (e.g. youtube-dl) check the mode attribute to decide whether to write
+    bytes or strings, and EncodedFile was incorrectly advertising binary mode.
+    """
+    import tempfile
+    
+    # Test with a real file descriptor (like FDCapture uses)
+    with tempfile.TemporaryFile(mode="w+b") as tmpfile:
+        # The underlying file has binary mode
+        assert "b" in tmpfile.mode
+        
+        # But EncodedFile should advertise text mode
+        ef = capture.EncodedFile(tmpfile, encoding="utf-8")
+        assert "b" not in ef.mode
+        
+        # Verify it still accepts strings (as it should)
+        ef.write("hello\n")
+        tmpfile.seek(0)
+        assert tmpfile.read() == b"hello\n"
+        
+        # And still rejects bytes in Python 3
+        if _PY3:
+            with pytest.raises(TypeError, match="write\\(\\) argument must be str"):
+                ef.write(b"bytes")
+    
+    # Test with BytesIO (which doesn't have a mode attribute)
+    import io
+    buf = io.BytesIO()
+    ef = capture.EncodedFile(buf, encoding="utf-8")
+    # Should return empty string when buffer has no mode
+    assert ef.mode == ""
+    ef.write("test")
+    assert buf.getvalue() == b"test"
Obtaining file:///testbed
  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 /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (1.11.0)
Requirement already satisfied: six>=1.10.0 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (1.16.0)
Requirement already satisfied: setuptools in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (68.0.0)
Requirement already satisfied: attrs>=17.4.0 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (23.1.0)
Requirement already satisfied: more-itertools>=4.0.0 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (10.1.0)
Requirement already satisfied: atomicwrites>=1.0 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (1.4.1)
Requirement already satisfied: pluggy!=0.10,<1.0,>=0.9 in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (0.11.0)
Requirement already satisfied: wcwidth in /opt/miniconda3/envs/testbed/lib/python3.9/site-packages (from pytest==4.5.1.dev4+g5063416b5.d20220101) (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-4.5.1.dev4+g5063416b5.d20220101-0.editable-py2.py3-none-any.whl size=5020 sha256=d623ca9ea4be0d25fe538bfdf3b51c16b28c9d3b82de306f3115663b24d53ddf
  Stored in directory: /tmp/pip-ephem-wheel-cache-43rnhq3f/wheels/7d/66/67/70d1ee2124ccf21d601c352e25cdca10f611f7c8b3f9ffb9e4
Successfully built pytest
Installing collected packages: pytest
  Attempting uninstall: pytest
    Found existing installation: pytest 4.5.1.dev3+g58e6a09db
    Uninstalling pytest-4.5.1.dev3+g58e6a09db:
      Successfully uninstalled pytest-4.5.1.dev3+g58e6a09db
Successfully installed pytest-4.5.1.dev4+g5063416b5.d20220101
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /testbed, inifile: tox.ini
collected 116 items

testing/test_capture.py ..........s.........s............s........s...s. [ 41%]
......x....................s.....................s..................     [100%]

==================================== PASSES ====================================
_______________ TestCaptureManager.test_capturing_basic_api[no] ________________
----------------------------- Captured stdout call -----------------------------
hello
hello
_______________ TestCaptureManager.test_capturing_basic_api[sys] _______________
----------------------------- Captured stdout call -----------------------------
hello
_______________ TestCaptureManager.test_capturing_basic_api[fd] ________________
----------------------------- Captured stdout call -----------------------------
hello
_____________________ TestStdCapture.test_just_out_capture _____________________
----------------------------- Captured stderr call -----------------------------
world
_____________________ TestStdCapture.test_just_err_capture _____________________
----------------------------- Captured stdout call -----------------------------
hello
_________________ TestStdCapture.test_stdin_nulled_by_default __________________
----------------------------- Captured stdout call -----------------------------
XXX this test may well hang instead of crashing
XXX which indicates an error in the underlying capturing
XXX mechanisms
____________________ TestStdCaptureFD.test_just_out_capture ____________________
----------------------------- Captured stderr call -----------------------------
world
____________________ TestStdCaptureFD.test_just_err_capture ____________________
----------------------------- Captured stdout call -----------------------------
hello
________________ TestStdCaptureFD.test_stdin_nulled_by_default _________________
----------------------------- Captured stdout call -----------------------------
XXX this test may well hang instead of crashing
XXX which indicates an error in the underlying capturing
XXX mechanisms
__________________________ test_capturing_unicode[fd] __________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capturing_unicode0
collected 1 item

test_capturing_unicode.py .                                              [100%]

=========================== 1 passed in 0.01 seconds ===========================
_________________________ test_capturing_unicode[sys] __________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capturing_unicode1
collected 1 item

test_capturing_unicode.py .                                              [100%]

=========================== 1 passed in 0.01 seconds ===========================
__________________ test_capturing_bytes_in_utf8_encoding[fd] ___________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capturing_bytes_in_utf8_encoding0
collected 1 item

test_capturing_bytes_in_utf8_encoding.py .                               [100%]

=========================== 1 passed in 0.01 seconds ===========================
__________________ test_capturing_bytes_in_utf8_encoding[sys] __________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capturing_bytes_in_utf8_encoding1
collected 1 item

test_capturing_bytes_in_utf8_encoding.py .                               [100%]

=========================== 1 passed in 0.00 seconds ===========================
____________________________ test_collect_capturing ____________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_collect_capturing0
collected 0 items / 1 errors

==================================== ERRORS ====================================
__________________ ERROR collecting test_collect_capturing.py __________________
ImportError while importing test module '/tmp/pytest-of-root/pytest-0/test_collect_capturing0/test_collect_capturing.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test_collect_capturing.py:5: in <module>
    import xyz42123
E   ModuleNotFoundError: No module named 'xyz42123'
------------------------------- Captured stdout --------------------------------
collect 13 failure
------------------------------- Captured stderr --------------------------------
collect 13_stderr failure
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.05 seconds ============================
________________ TestPerTestCapturing.test_capture_and_fixtures ________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_and_fixtures0
collected 2 items

test_capture_and_fixtures.py FF                                          [100%]

=================================== FAILURES ===================================
__________________________________ test_func1 __________________________________

    def test_func1():
        print("in func1")
>       assert 0
E       assert 0

test_capture_and_fixtures.py:7: AssertionError
---------------------------- Captured stdout setup -----------------------------
setup module
setup test_func1
----------------------------- Captured stdout call -----------------------------
in func1
__________________________________ test_func2 __________________________________

    def test_func2():
        print("in func2")
>       assert 0
E       assert 0

test_capture_and_fixtures.py:10: AssertionError
---------------------------- Captured stdout setup -----------------------------
setup test_func2
----------------------------- Captured stdout call -----------------------------
in func2
=========================== 2 failed in 0.02 seconds ===========================
___________________ TestPerTestCapturing.test_no_carry_over ____________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_no_carry_over0
collected 2 items

test_no_carry_over.py .F                                                 [100%]

=================================== FAILURES ===================================
__________________________________ test_func2 __________________________________

    def test_func2():
        print("in func2")
>       assert 0
E       assert 0

test_no_carry_over.py:5: AssertionError
----------------------------- Captured stdout call -----------------------------
in func2
====================== 1 failed, 1 passed in 0.01 seconds ======================
_________________ TestPerTestCapturing.test_teardown_capturing _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_teardown_capturing0
collected 1 item

test_teardown_capturing.py .E                                            [100%]

==================================== ERRORS ====================================
_______________________ ERROR at teardown of test_func1 ________________________

function = <function test_func1 at 0x2a786b5fd1f0>

    def teardown_function(function):
        print("teardown func1")
>       assert 0
E       assert 0

test_teardown_capturing.py:5: AssertionError
---------------------------- Captured stdout setup -----------------------------
setup func1
----------------------------- Captured stdout call -----------------------------
in func1
--------------------------- Captured stdout teardown ---------------------------
teardown func1
====================== 1 passed, 1 error in 0.02 seconds =======================
______________ TestPerTestCapturing.test_teardown_capturing_final ______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_teardown_capturing_final0
collected 1 item

test_teardown_capturing_final.py .E                                      [100%]

==================================== ERRORS ====================================
________________________ ERROR at teardown of test_func ________________________

mod = <module 'test_teardown_capturing_final' from '/tmp/pytest-of-root/pytest-0/test_teardown_capturing_final0/test_teardown_capturing_final.py'>

    def teardown_module(mod):
        print("teardown module")
>       assert 0
E       assert 0

test_teardown_capturing_final.py:3: AssertionError
--------------------------- Captured stdout teardown ---------------------------
teardown module
====================== 1 passed, 1 error in 0.01 seconds =======================
__________________ TestPerTestCapturing.test_capturing_outerr __________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capturing_outerr0
collected 2 items

test_capturing_outerr.py .F                                              [100%]

=================================== FAILURES ===================================
_____________________________ test_capturing_error _____________________________

    def test_capturing_error():
        print(1)
        sys.stderr.write(str(2))
>       raise ValueError
E       ValueError

test_capturing_outerr.py:8: ValueError
----------------------------- Captured stdout call -----------------------------
1
----------------------------- Captured stderr call -----------------------------
2
====================== 1 failed, 1 passed in 0.01 seconds ======================
_____________ TestLoggingInteraction.test_logging_stream_ownership _____________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_logging_stream_ownership0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_logging_stream_ownership0/test_logging_stream_ownership.py
     in: /tmp/pytest-of-root/pytest-0/test_logging_stream_ownership0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_logging_stream_ownership0
collected 1 item

test_logging_stream_ownership.py F                                       [100%]

=================================== FAILURES ===================================
_________________________________ test_logging _________________________________

    def test_logging():
        import logging
        import pytest
>       stream = capture.CaptureIO()
E       NameError: name 'capture' is not defined

test_logging_stream_ownership.py:4: NameError
=========================== 1 failed in 0.03 seconds ===========================
_______ TestLoggingInteraction.test_logging_and_immediate_setupteardown ________
----------------------------- Captured stdout call -----------------------------
('--capture=sys',)
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0/test_logging_and_immediate_setupteardown.py --capture=sys
     in: /tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0
collected 1 item

test_logging_and_immediate_setupteardown.py FE                           [100%]

==================================== ERRORS ====================================
______________________ ERROR at teardown of test_logging _______________________

function = <function test_logging at 0x2b065e155ee0>

    def teardown_function(function):
        logging.warning("hello3")
>       assert 0
E       assert 0

test_logging_and_immediate_setupteardown.py:11: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:6 hello2
---------------------------- Captured log teardown -----------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:10 hello3
=================================== FAILURES ===================================
_________________________________ test_logging _________________________________

    def test_logging():
        logging.warning("hello2")
>       assert 0
E       assert 0

test_logging_and_immediate_setupteardown.py:7: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:6 hello2
====================== 1 failed, 1 error in 0.02 seconds =======================
('--capture=fd',)
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0/runpytest-1 /tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0/test_logging_and_immediate_setupteardown.py --capture=fd
     in: /tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_logging_and_immediate_setupteardown0
collected 1 item

test_logging_and_immediate_setupteardown.py FE                           [100%]

==================================== ERRORS ====================================
______________________ ERROR at teardown of test_logging _______________________

function = <function test_logging at 0x2ae379dac8b0>

    def teardown_function(function):
        logging.warning("hello3")
>       assert 0
E       assert 0

test_logging_and_immediate_setupteardown.py:11: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:6 hello2
---------------------------- Captured log teardown -----------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:10 hello3
=================================== FAILURES ===================================
_________________________________ test_logging _________________________________

    def test_logging():
        logging.warning("hello2")
>       assert 0
E       assert 0

test_logging_and_immediate_setupteardown.py:7: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_immediate_setupteardown.py:6 hello2
====================== 1 failed, 1 error in 0.03 seconds =======================
_________ TestLoggingInteraction.test_logging_and_crossscope_fixtures __________
----------------------------- Captured stdout call -----------------------------
('--capture=sys',)
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0/test_logging_and_crossscope_fixtures.py --capture=sys
     in: /tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0
collected 1 item

test_logging_and_crossscope_fixtures.py FE                               [100%]

==================================== ERRORS ====================================
______________________ ERROR at teardown of test_logging _______________________

function = <module 'test_logging_and_crossscope_fixtures' from '/tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0/test_logging_and_crossscope_fixtures.py'>

    def teardown_module(function):
        logging.warning("hello3")
>       assert 0
E       assert 0

test_logging_and_crossscope_fixtures.py:11: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:6 hello2
---------------------------- Captured log teardown -----------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:10 hello3
=================================== FAILURES ===================================
_________________________________ test_logging _________________________________

    def test_logging():
        logging.warning("hello2")
>       assert 0
E       assert 0

test_logging_and_crossscope_fixtures.py:7: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:6 hello2
====================== 1 failed, 1 error in 0.03 seconds =======================
('--capture=fd',)
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0/runpytest-1 /tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0/test_logging_and_crossscope_fixtures.py --capture=fd
     in: /tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0
collected 1 item

test_logging_and_crossscope_fixtures.py FE                               [100%]

==================================== ERRORS ====================================
______________________ ERROR at teardown of test_logging _______________________

function = <module 'test_logging_and_crossscope_fixtures' from '/tmp/pytest-of-root/pytest-0/test_logging_and_crossscope_fixtures0/test_logging_and_crossscope_fixtures.py'>

    def teardown_module(function):
        logging.warning("hello3")
>       assert 0
E       assert 0

test_logging_and_crossscope_fixtures.py:11: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:6 hello2
---------------------------- Captured log teardown -----------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:10 hello3
=================================== FAILURES ===================================
_________________________________ test_logging _________________________________

    def test_logging():
        logging.warning("hello2")
>       assert 0
E       assert 0

test_logging_and_crossscope_fixtures.py:7: AssertionError
------------------------------ Captured log setup ------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:3 hello1
------------------------------ Captured log call -------------------------------
WARNING  root:test_logging_and_crossscope_fixtures.py:6 hello2
====================== 1 failed, 1 error in 0.04 seconds =======================
_____________ TestLoggingInteraction.test_conftestlogging_is_shown _____________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_conftestlogging_is_shown0/runpytest-0 -s -p no:capturelog
     in: /tmp/pytest-of-root/pytest-0/test_conftestlogging_is_shown0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_conftestlogging_is_shown0
collected 0 items

========================= no tests ran in 0.01 seconds =========================
----------------------------- Captured stderr call -----------------------------
WARNING:root:hello435
_________ TestLoggingInteraction.test_conftestlogging_and_test_logging _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_conftestlogging_and_test_logging0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_conftestlogging_and_test_logging0/test_conftestlogging_and_test_logging.py -p no:capturelog
     in: /tmp/pytest-of-root/pytest-0/test_conftestlogging_and_test_logging0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_conftestlogging_and_test_logging0
collected 1 item

test_conftestlogging_and_test_logging.py F                               [100%]

=================================== FAILURES ===================================
__________________________________ test_hello __________________________________

    def test_hello():
        import logging
        logging.warning("hello433")
>       assert 0
E       assert 0

test_conftestlogging_and_test_logging.py:4: AssertionError
----------------------------- Captured stderr call -----------------------------
WARNING:root:hello433
------------------------------ Captured log call -------------------------------
WARNING  root:test_conftestlogging_and_test_logging.py:3 hello433
=========================== 1 failed in 0.03 seconds ===========================
____________ TestLoggingInteraction.test_logging_after_cap_stopped _____________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_logging_after_cap_stopped0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_logging_after_cap_stopped0/test_logging_after_cap_stopped.py --log-cli-level info
     in: /tmp/pytest-of-root/pytest-0/test_logging_after_cap_stopped0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0 -- /opt/miniconda3/envs/testbed/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-root/pytest-0/test_logging_after_cap_stopped0
collecting ... collected 1 item

test_logging_after_cap_stopped.py::test_hello 
-------------------------------- live log call ---------------------------------
WARNING  root:test_logging_after_cap_stopped.py:3 hello433
---------------------------- live log sessionfinish ----------------------------
WARNING  conftest:conftest.py:9 Logging on teardown


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/tmp/pytest-of-root/pytest-0/test_logging_after_cap_stopped0/test_logging_after_cap_stopped.py:5: KeyboardInterrupt
(to show a full traceback on KeyboardInterrupt use --fulltrace)
========================= no tests ran in 0.10 seconds =========================
_________________ TestCaptureFixture.test_std_functional[opt0] _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_std_functional0
collected 1 item

test_std_functional.py .                                                 [100%]

=========================== 1 passed in 0.01 seconds ===========================
_________________ TestCaptureFixture.test_std_functional[opt1] _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_std_functional1
collected 1 item

test_std_functional.py .

=========================== 1 passed in 0.01 seconds ===========================
_____________________ TestCaptureFixture.test_capsyscapfd ______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capsyscapfd0
collected 2 items

test_capsyscapfd.py EE                                                   [100%]

==================================== ERRORS ====================================
__________________________ ERROR at setup of test_one __________________________
file /tmp/pytest-of-root/pytest-0/test_capsyscapfd0/test_capsyscapfd.py, line 1
  def test_one(capsys, capfd):
E       cannot use capfd and capsys at the same time

/tmp/pytest-of-root/pytest-0/test_capsyscapfd0/test_capsyscapfd.py:1
__________________________ ERROR at setup of test_two __________________________
file /tmp/pytest-of-root/pytest-0/test_capsyscapfd0/test_capsyscapfd.py, line 3
  def test_two(capfd, capsys):
E       cannot use capsys and capfd at the same time

/tmp/pytest-of-root/pytest-0/test_capsyscapfd0/test_capsyscapfd.py:3
=========================== 2 error in 0.01 seconds ============================
______________ TestCaptureFixture.test_capturing_getfixturevalue _______________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capturing_getfixturevalue0
collected 2 items

test_capturing_getfixturevalue.py FF                                     [100%]

=================================== FAILURES ===================================
___________________________________ test_one ___________________________________
file /tmp/pytest-of-root/pytest-0/test_capturing_getfixturevalue0/test_capturing_getfixturevalue.py, line 1
  def test_one(capsys, request):
E       cannot use capsys and capfd at the same time

/tmp/pytest-of-root/pytest-0/test_capturing_getfixturevalue0/test_capturing_getfixturevalue.py:1
___________________________________ test_two ___________________________________
file /tmp/pytest-of-root/pytest-0/test_capturing_getfixturevalue0/test_capturing_getfixturevalue.py, line 3
  def test_two(capfd, request):
E       cannot use capfd and capsys at the same time

/tmp/pytest-of-root/pytest-0/test_capturing_getfixturevalue0/test_capturing_getfixturevalue.py:3
=========================== 2 failed in 0.02 seconds ===========================
__________________ TestCaptureFixture.test_capsyscapfdbinary ___________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capsyscapfdbinary0
collected 1 item

test_capsyscapfdbinary.py E                                              [100%]

==================================== ERRORS ====================================
__________________________ ERROR at setup of test_one __________________________
file /tmp/pytest-of-root/pytest-0/test_capsyscapfdbinary0/test_capsyscapfdbinary.py, line 1
  def test_one(capsys, capfdbinary):
E       cannot use capfdbinary and capsys at the same time

/tmp/pytest-of-root/pytest-0/test_capsyscapfdbinary0/test_capsyscapfdbinary.py:1
=========================== 1 error in 0.01 seconds ============================
___ TestCaptureFixture.test_capture_is_represented_on_failure_issue128[sys] ____
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_is_represented_on_failure_issue1280
collected 1 item

test_capture_is_represented_on_failure_issue128.py F                     [100%]

=================================== FAILURES ===================================
__________________________________ test_hello __________________________________

capsys = <_pytest.capture.CaptureFixture object at 0x2a786ba6d1f0>

    def test_hello(capsys):
        print("xxx42xxx")
>       assert 0
E       assert 0

test_capture_is_represented_on_failure_issue128.py:3: AssertionError
----------------------------- Captured stdout call -----------------------------
xxx42xxx
=========================== 1 failed in 0.01 seconds ===========================
____ TestCaptureFixture.test_capture_is_represented_on_failure_issue128[fd] ____
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_is_represented_on_failure_issue1281
collected 1 item

test_capture_is_represented_on_failure_issue128.py F                     [100%]

=================================== FAILURES ===================================
__________________________________ test_hello __________________________________

capfd = <_pytest.capture.CaptureFixture object at 0x2a786bab98b0>

    def test_hello(capfd):
        print("xxx42xxx")
>       assert 0
E       assert 0

test_capture_is_represented_on_failure_issue128.py:3: AssertionError
----------------------------- Captured stdout call -----------------------------
xxx42xxx
=========================== 1 failed in 0.01 seconds ===========================
___________________ TestCaptureFixture.test_stdfd_functional ___________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_stdfd_functional0
collected 1 item

test_stdfd_functional.py .                                               [100%]

=========================== 1 passed in 0.01 seconds ===========================
_____________________ TestCaptureFixture.test_capfdbinary ______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capfdbinary0
collected 1 item

test_capfdbinary.py .                                                    [100%]

=========================== 1 passed in 0.01 seconds ===========================
_____________________ TestCaptureFixture.test_capsysbinary _____________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capsysbinary0
collected 1 item

test_capsysbinary.py .                                                   [100%]

=========================== 1 passed in 0.01 seconds ===========================
________________ TestCaptureFixture.test_partial_setup_failure _________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_partial_setup_failure0
collected 1 item

test_partial_setup_failure.py E                                          [100%]

==================================== ERRORS ====================================
_________________________ ERROR at setup of test_hello _________________________
file /tmp/pytest-of-root/pytest-0/test_partial_setup_failure0/test_partial_setup_failure.py, line 1
  def test_hello(capsys, missingarg):
E       fixture 'missingarg' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/tmp/pytest-of-root/pytest-0/test_partial_setup_failure0/test_partial_setup_failure.py:1
=========================== 1 error in 0.01 seconds ============================
_________ TestCaptureFixture.test_keyboardinterrupt_disables_capturing _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_keyboardinterrupt_disables_capturing0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_keyboardinterrupt_disables_capturing0/test_keyboardinterrupt_disables_capturing.py
     in: /tmp/pytest-of-root/pytest-0/test_keyboardinterrupt_disables_capturing0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_keyboardinterrupt_disables_capturing0
collected 1 item

test_keyboardinterrupt_disables_capturing.py 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/tmp/pytest-of-root/pytest-0/test_keyboardinterrupt_disables_capturing0/test_keyboardinterrupt_disables_capturing.py:4: KeyboardInterrupt
(to show a full traceback on KeyboardInterrupt use --fulltrace)
========================= no tests ran in 0.10 seconds =========================
_________________ TestCaptureFixture.test_capture_and_logging __________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_capture_and_logging0/runpytest-0 /tmp/pytest-of-root/pytest-0/test_capture_and_logging0/test_capture_and_logging.py
     in: /tmp/pytest-of-root/pytest-0/test_capture_and_logging0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_and_logging0
collected 1 item

test_capture_and_logging.py .                                            [100%]

=========================== 1 passed in 0.01 seconds ===========================
________ TestCaptureFixture.test_disabled_capture_fixture[True-capsys] _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture0/runpytest-0 -s
     in: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture0
collected 2 items

test_disabled_capture_fixture.py while capture is disabled
.test_normal executed
.

=========================== 2 passed in 0.01 seconds ===========================
_________ TestCaptureFixture.test_disabled_capture_fixture[True-capfd] _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture1/runpytest-0 -s
     in: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture1
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture1
collected 2 items

test_disabled_capture_fixture.py while capture is disabled
.test_normal executed
.

=========================== 2 passed in 0.01 seconds ===========================
________ TestCaptureFixture.test_disabled_capture_fixture[False-capsys] ________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture2/runpytest-0
     in: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture2
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture2
collected 2 items

test_disabled_capture_fixture.py while capture is disabled
..                                      [100%]

=========================== 2 passed in 0.01 seconds ===========================
________ TestCaptureFixture.test_disabled_capture_fixture[False-capfd] _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture3/runpytest-0
     in: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture3
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_disabled_capture_fixture3
collected 2 items

test_disabled_capture_fixture.py while capture is disabled
..                                      [100%]

=========================== 2 passed in 0.01 seconds ===========================
________ TestCaptureFixture.test_fixture_use_by_other_fixtures[capsys] _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures0/runpytest-0
     in: /tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures0
collected 1 item

test_fixture_use_by_other_fixtures.py .                                  [100%]

=========================== 1 passed in 0.01 seconds ===========================
_________ TestCaptureFixture.test_fixture_use_by_other_fixtures[capfd] _________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures1/runpytest-0
     in: /tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures1
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures1
collected 1 item

test_fixture_use_by_other_fixtures.py .                                  [100%]

=========================== 1 passed in 0.01 seconds ===========================
____ TestCaptureFixture.test_fixture_use_by_other_fixtures_teardown[capsys] ____
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures_teardown0
collected 1 item

test_fixture_use_by_other_fixtures_teardown.py .                         [100%]

=========================== 1 passed in 0.01 seconds ===========================
____ TestCaptureFixture.test_fixture_use_by_other_fixtures_teardown[capfd] _____
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_fixture_use_by_other_fixtures_teardown1
collected 1 item

test_fixture_use_by_other_fixtures_teardown.py .                         [100%]

=========================== 1 passed in 0.01 seconds ===========================
__________________ test_setup_failure_does_not_kill_capturing __________________
----------------------------- Captured stdout call -----------------------------
PLUGIN registered: <_pytest.config.PytestPluginManager object at 0x2a786bc95610>
PLUGIN registered: <_pytest.config.Config object at 0x2a786bcaeca0>
PLUGIN registered: <module '_pytest.mark' from '/testbed/src/_pytest/mark/__init__.py'>
PLUGIN registered: <module '_pytest.main' from '/testbed/src/_pytest/main.py'>
PLUGIN registered: <module '_pytest.runner' from '/testbed/src/_pytest/runner.py'>
PLUGIN registered: <module '_pytest.python' from '/testbed/src/_pytest/python.py'>
PLUGIN registered: <module '_pytest.fixtures' from '/testbed/src/_pytest/fixtures.py'>
PLUGIN registered: <module '_pytest.helpconfig' from '/testbed/src/_pytest/helpconfig.py'>
PLUGIN registered: <module '_pytest.terminal' from '/testbed/src/_pytest/terminal.py'>
PLUGIN registered: <module '_pytest.debugging' from '/testbed/src/_pytest/debugging.py'>
PLUGIN registered: <module '_pytest.unittest' from '/testbed/src/_pytest/unittest.py'>
PLUGIN registered: <module '_pytest.capture' from '/testbed/src/_pytest/capture.py'>
PLUGIN registered: <module '_pytest.skipping' from '/testbed/src/_pytest/skipping.py'>
PLUGIN registered: <module '_pytest.tmpdir' from '/testbed/src/_pytest/tmpdir.py'>
PLUGIN registered: <module '_pytest.monkeypatch' from '/testbed/src/_pytest/monkeypatch.py'>
PLUGIN registered: <module '_pytest.recwarn' from '/testbed/src/_pytest/recwarn.py'>
PLUGIN registered: <module '_pytest.pastebin' from '/testbed/src/_pytest/pastebin.py'>
PLUGIN registered: <module '_pytest.nose' from '/testbed/src/_pytest/nose.py'>
PLUGIN registered: <module '_pytest.assertion' from '/testbed/src/_pytest/assertion/__init__.py'>
PLUGIN registered: <module '_pytest.junitxml' from '/testbed/src/_pytest/junitxml.py'>
PLUGIN registered: <module '_pytest.resultlog' from '/testbed/src/_pytest/resultlog.py'>
PLUGIN registered: <module '_pytest.doctest' from '/testbed/src/_pytest/doctest.py'>
PLUGIN registered: <module '_pytest.cacheprovider' from '/testbed/src/_pytest/cacheprovider.py'>
PLUGIN registered: <module '_pytest.freeze_support' from '/testbed/src/_pytest/freeze_support.py'>
PLUGIN registered: <module '_pytest.setuponly' from '/testbed/src/_pytest/setuponly.py'>
PLUGIN registered: <module '_pytest.setupplan' from '/testbed/src/_pytest/setupplan.py'>
PLUGIN registered: <module '_pytest.stepwise' from '/testbed/src/_pytest/stepwise.py'>
PLUGIN registered: <module '_pytest.warnings' from '/testbed/src/_pytest/warnings.py'>
PLUGIN registered: <module '_pytest.logging' from '/testbed/src/_pytest/logging.py'>
PLUGIN registered: <module '_pytest.reports' from '/testbed/src/_pytest/reports.py'>
PLUGIN registered: <_pytest.pytester.Testdir.inline_run.<locals>.Collect object at 0x2a786bc955e0>
PLUGIN registered: <CaptureManager _method='fd' _global_capturing=<MultiCapture out=<FDCapture 1 oldfd=11 _state='suspended'> err=<FDCapture 2 oldfd=12 _state='suspended'> in_=<FDCapture 0 oldfd=8 _state='started'> _state='suspended' _in_suspended='<UNSET>'> _current_item=None>
PLUGIN registered: <Session test_setup_failure_does_not_kill_capturing0 exitstatus=0 testsfailed=0 testscollected=0>
PLUGIN registered: <_pytest.cacheprovider.LFPlugin object at 0x2a786bce20a0>
PLUGIN registered: <_pytest.cacheprovider.NFPlugin object at 0x2a786bce2100>
PLUGIN registered: <_pytest.stepwise.StepwisePlugin object at 0x2a786bcd8fd0>
PLUGIN registered: <_pytest.terminal.TerminalReporter object at 0x2a786bcd8ca0>
PLUGIN registered: <_pytest.logging.LoggingPlugin object at 0x2a786bc886d0>
PLUGIN registered: <_pytest.fixtures.FixtureManager object at 0x2a786bce8e80>
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
using: pytest-4.5.1.dev4+g5063416b5.d20220101 pylib-1.11.0
active plugins:
    46696692798992      : <_pytest.config.PytestPluginManager object at 0x2a786bc95610>
    pytestconfig        : <_pytest.config.Config object at 0x2a786bcaeca0>
    mark                : /testbed/src/_pytest/mark/__init__.py
    main                : /testbed/src/_pytest/main.py
    runner              : /testbed/src/_pytest/runner.py
    python              : /testbed/src/_pytest/python.py
    fixtures            : /testbed/src/_pytest/fixtures.py
    helpconfig          : /testbed/src/_pytest/helpconfig.py
    terminal            : /testbed/src/_pytest/terminal.py
    debugging           : /testbed/src/_pytest/debugging.py
    unittest            : /testbed/src/_pytest/unittest.py
    capture             : /testbed/src/_pytest/capture.py
    skipping            : /testbed/src/_pytest/skipping.py
    tmpdir              : /testbed/src/_pytest/tmpdir.py
    monkeypatch         : /testbed/src/_pytest/monkeypatch.py
    recwarn             : /testbed/src/_pytest/recwarn.py
    pastebin            : /testbed/src/_pytest/pastebin.py
    nose                : /testbed/src/_pytest/nose.py
    assertion           : /testbed/src/_pytest/assertion/__init__.py
    junitxml            : /testbed/src/_pytest/junitxml.py
    resultlog           : /testbed/src/_pytest/resultlog.py
    doctest             : /testbed/src/_pytest/doctest.py
    cacheprovider       : /testbed/src/_pytest/cacheprovider.py
    freeze_support      : /testbed/src/_pytest/freeze_support.py
    setuponly           : /testbed/src/_pytest/setuponly.py
    setupplan           : /testbed/src/_pytest/setupplan.py
    stepwise            : /testbed/src/_pytest/stepwise.py
    warnings            : /testbed/src/_pytest/warnings.py
    logging             : /testbed/src/_pytest/logging.py
    reports             : /testbed/src/_pytest/reports.py
    46696692798944      : <_pytest.pytester.Testdir.inline_run.<locals>.Collect object at 0x2a786bc955e0>
    capturemanager      : <CaptureManager _method='fd' _global_capturing=<MultiCapture out=<FDCapture 1 oldfd=11 _state='suspended'> err=<FDCapture 2 oldfd=12 _state='suspended'> in_=<FDCapture 0 oldfd=8 _state='started'> _state='suspended' _in_suspended='<UNSET>'> _current_item=None>
    session             : <Session test_setup_failure_does_not_kill_capturing0 exitstatus=0 testsfailed=0 testscollected=0>
    lfplugin            : <_pytest.cacheprovider.LFPlugin object at 0x2a786bce20a0>
    nfplugin            : <_pytest.cacheprovider.NFPlugin object at 0x2a786bce2100>
    stepwiseplugin      : <_pytest.stepwise.StepwisePlugin object at 0x2a786bcd8fd0>
    terminalreporter    : <_pytest.terminal.TerminalReporter object at 0x2a786bcd8ca0>
    logging-plugin      : <_pytest.logging.LoggingPlugin object at 0x2a786bc886d0>
    funcmanage          : <_pytest.fixtures.FixtureManager object at 0x2a786bce8e80>
rootdir: /tmp/pytest-of-root/pytest-0/test_setup_failure_does_not_kill_capturing0
PLUGIN registered: <module 'sub1.conftest' from '/tmp/pytest-of-root/pytest-0/test_setup_failure_does_not_kill_capturing0/sub1/conftest.py'>
collected 1 item

sub1/test_mod.py E                                                       [100%]

==================================== ERRORS ====================================
_________________________ ERROR at setup of test_func1 _________________________

item = <Function test_func1>

    def pytest_runtest_setup(item):
>       raise ValueError(42)
E       ValueError: 42

sub1/conftest.py:2: ValueError
=========================== 1 error in 0.01 seconds ============================
_______________________ test_fdfuncarg_skips_on_no_osdup _______________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_fdfuncarg_skips_on_no_osdup0/runpytest-0 --capture=no
     in: /tmp/pytest-of-root/pytest-0/test_fdfuncarg_skips_on_no_osdup0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_fdfuncarg_skips_on_no_osdup0
collected 1 item

test_fdfuncarg_skips_on_no_osdup.py s

========================== 1 skipped in 0.01 seconds ===========================
_____________________ test_capture_conftest_runtest_setup ______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_conftest_runtest_setup0
collected 1 item

test_capture_conftest_runtest_setup.py .                                 [100%]

=========================== 1 passed in 0.01 seconds ===========================
_______________________ test_capture_badoutput_issue412 ________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_badoutput_issue4120
collected 1 item

test_capture_badoutput_issue412.py F                                     [100%]

=================================== FAILURES ===================================
__________________________________ test_func ___________________________________

    def test_func():
        omg = bytearray([1,129,1])
        os.write(1, omg)
>       assert 0
E       assert 0

test_capture_badoutput_issue412.py:6: AssertionError
----------------------------- Captured stdout call -----------------------------
�
=========================== 1 failed in 0.01 seconds ===========================
______________________ test_capture_early_option_parsing _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0 -- /opt/miniconda3/envs/testbed/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_early_option_parsing0
collecting ... collected 1 item

test_capture_early_option_parsing.py::test_func hello19
PASSED

=========================== 1 passed in 0.01 seconds ===========================
__________________________ test_capture_binary_output __________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_binary_output0
collected 2 items

test_capture_binary_output.py ..                                         [100%]

=========================== 2 passed in 0.15 seconds ===========================
_________________________ test_error_during_readouterr _________________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_error_during_readouterr0/runpytest-0 -p pytest_xyz --version
     in: /tmp/pytest-of-root/pytest-0/test_error_during_readouterr0
----------------------------- Captured stderr call -----------------------------
This is pytest version 4.5.1.dev4+g5063416b5.d20220101, imported from /testbed/src/pytest.py
Traceback (most recent call last):
  File "/opt/miniconda3/envs/testbed/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/miniconda3/envs/testbed/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/testbed/src/pytest.py", line 101, in <module>
    raise SystemExit(pytest.main())
  File "/testbed/src/_pytest/config/__init__.py", line 81, in main
    config._ensure_unconfigure()
  File "/testbed/src/_pytest/config/__init__.py", line 677, in _ensure_unconfigure
    fin()
  File "/testbed/src/_pytest/capture.py", line 125, in stop_global_capturing
    self._global_capturing.pop_outerr_to_orig()
  File "/testbed/src/_pytest/capture.py", line 502, in pop_outerr_to_orig
    out, err = self.readouterr()
  File "/testbed/src/_pytest/capture.py", line 544, in readouterr
    self.out.snap() if self.out is not None else "",
  File "/tmp/pytest-of-root/pytest-0/test_error_during_readouterr0/pytest_xyz.py", line 4, in bad_snap
    raise Exception('boom')
Exception: boom
___________________ TestFDCapture.test_simple_resume_suspend ___________________
----------------------------- Captured stdout call -----------------------------
worldqlwkej
_____________________ TestStdCaptureFD.test_simple_only_fd _____________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_simple_only_fd0/runpytest-0
     in: /tmp/pytest-of-root/pytest-0/test_simple_only_fd0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_simple_only_fd0
collected 1 item

test_simple_only_fd.py F                                                 [100%]

=================================== FAILURES ===================================
____________________________________ test_x ____________________________________

    def test_x():
        os.write(1, "hello\n".encode("ascii"))
>       assert 0
E       assert 0

test_simple_only_fd.py:4: AssertionError
----------------------------- Captured stdout call -----------------------------
hello
=========================== 1 failed in 0.03 seconds ===========================
___________ TestStdCaptureFDinvalidFD.test_stdcapture_fd_invalid_fd ____________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_stdcapture_fd_invalid_fd0/runpytest-0 --capture=fd
     in: /tmp/pytest-of-root/pytest-0/test_stdcapture_fd_invalid_fd0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_stdcapture_fd_invalid_fd0
collected 3 items

test_stdcapture_fd_invalid_fd.py ...                                     [100%]

=========================== 3 passed in 0.01 seconds ===========================
_________________________ test_close_and_capture_again _________________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_close_and_capture_again0/runpytest-0
     in: /tmp/pytest-of-root/pytest-0/test_close_and_capture_again0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_close_and_capture_again0
collected 2 items

test_close_and_capture_again.py .F                                       [100%]

=================================== FAILURES ===================================
______________________________ test_capture_again ______________________________

    def test_capture_again():
        os.write(1, b"hello\n")
>       assert 0
E       assert 0

test_close_and_capture_again.py:6: AssertionError
----------------------------- Captured stdout call -----------------------------
hello
====================== 1 failed, 1 passed in 0.03 seconds ======================
_____________ test_capturing_and_logging_fundamentals[SysCapture] ______________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python /tmp/pytest-of-root/pytest-0/test_capturing_and_logging_fundamentals0/test_capturing_and_logging_fundamentals.py
     in: /tmp/pytest-of-root/pytest-0/test_capturing_and_logging_fundamentals0
suspend, captured CaptureResult(out='', err='WARNING:root:hello1\n')
suspend2, captured CaptureResult(out='', err='WARNING:root:hello3\n')
----------------------------- Captured stderr call -----------------------------
WARNING:root:hello2
______________ test_capturing_and_logging_fundamentals[FDCapture] ______________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python /tmp/pytest-of-root/pytest-0/test_capturing_and_logging_fundamentals1/test_capturing_and_logging_fundamentals.py
     in: /tmp/pytest-of-root/pytest-0/test_capturing_and_logging_fundamentals1
suspend, captured CaptureResult(out='', err='WARNING:root:hello1\n')
suspend2, captured CaptureResult(out='', err='WARNING:root:hello3\n')
----------------------------- Captured stderr call -----------------------------
WARNING:root:hello2
________________________ test_error_attribute_issue555 _________________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_error_attribute_issue5550
collected 1 item

test_error_attribute_issue555.py .                                       [100%]

=========================== 1 passed in 0.01 seconds ===========================
_____________________ test_dontreadfrominput_has_encoding ______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_dontreadfrominput_has_encoding0
collected 1 item

test_dontreadfrominput_has_encoding.py .                                 [100%]

=========================== 1 passed in 0.01 seconds ===========================
______________________ test_crash_on_closing_tmpfile_py27 ______________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_crash_on_closing_tmpfile_py270/runpytest-0 /tmp/pytest-of-root/pytest-0/test_crash_on_closing_tmpfile_py270/test_crash_on_closing_tmpfile_py27.py
     in: /tmp/pytest-of-root/pytest-0/test_crash_on_closing_tmpfile_py270
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_crash_on_closing_tmpfile_py270
collected 1 item

test_crash_on_closing_tmpfile_py27.py .                                  [100%]

=========================== 1 passed in 0.37 seconds ===========================
____________________ test_global_capture_with_live_logging _____________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_global_capture_with_live_logging0/runpytest-0 --log-cli-level=INFO
     in: /tmp/pytest-of-root/pytest-0/test_global_capture_with_live_logging0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0 -- /opt/miniconda3/envs/testbed/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-root/pytest-0/test_global_capture_with_live_logging0
collecting ... collected 1 item

test_global_capture_with_live_logging.py::test_global 
-------------------------------- live log setup --------------------------------
INFO     root:test_global_capture_with_live_logging.py:10 fix setup
-------------------------------- live log call ---------------------------------
INFO     root:test_global_capture_with_live_logging.py:17 something in test
PASSED                                                                   [100%]
------------------------------ live log teardown -------------------------------
INFO     root:test_global_capture_with_live_logging.py:12 fix teardown


=========================== 1 passed in 0.01 seconds ===========================
____________________ test_capture_with_live_logging[capsys] ____________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_capture_with_live_logging0/runpytest-0 --log-cli-level=INFO
     in: /tmp/pytest-of-root/pytest-0/test_capture_with_live_logging0
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0 -- /opt/miniconda3/envs/testbed/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_with_live_logging0
collecting ... collected 1 item

test_capture_with_live_logging.py::test_capture 
-------------------------------- live log call ---------------------------------
INFO     root:test_capture_with_live_logging.py:13 something
INFO     root:test_capture_with_live_logging.py:15 something
PASSED                                                                   [100%]

=========================== 1 passed in 0.01 seconds ===========================
____________________ test_capture_with_live_logging[capfd] _____________________
----------------------------- Captured stdout call -----------------------------
running: /opt/miniconda3/envs/testbed/bin/python -mpytest --basetemp=/tmp/pytest-of-root/pytest-0/test_capture_with_live_logging1/runpytest-0 --log-cli-level=INFO
     in: /tmp/pytest-of-root/pytest-0/test_capture_with_live_logging1
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0 -- /opt/miniconda3/envs/testbed/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-root/pytest-0/test_capture_with_live_logging1
collecting ... collected 1 item

test_capture_with_live_logging.py::test_capture 
-------------------------------- live log call ---------------------------------
INFO     root:test_capture_with_live_logging.py:13 something
INFO     root:test_capture_with_live_logging.py:15 something
PASSED                                                                   [100%]

=========================== 1 passed in 0.01 seconds ===========================
_______________________ test_typeerror_encodedfile_write _______________________
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_typeerror_encodedfile_write0
collected 1 item

test_typeerror_encodedfile_write.py F

=================================== FAILURES ===================================
__________________________________ test_fails __________________________________

    def test_fails():
        import sys
>       sys.stdout.write(b"foo")
E       TypeError: write() argument must be str, not bytes

test_typeerror_encodedfile_write.py:3: TypeError
=========================== 1 failed in 0.01 seconds ===========================
============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-4.5.1.dev4+g5063416b5.d20220101, py-1.11.0, pluggy-0.11.0
rootdir: /tmp/pytest-of-root/pytest-0/test_typeerror_encodedfile_write0
collected 1 item

test_typeerror_encodedfile_write.py F                                    [100%]

=================================== FAILURES ===================================
__________________________________ test_fails __________________________________

    def test_fails():
        import sys
>       sys.stdout.write(b"foo")

test_typeerror_encodedfile_write.py:3: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.capture.EncodedFile object at 0x2a786be2de80>, obj = b'foo'

    def write(self, obj):
        if isinstance(obj, six.text_type):
            obj = obj.encode(self.encoding, "replace")
        elif _PY3:
>           raise TypeError(
                "write() argument must be str, not {}".format(type(obj).__name__)
            )
E           TypeError: write() argument must be str, not bytes

/testbed/src/_pytest/capture.py:436: TypeError
=========================== 1 failed in 0.02 seconds ===========================
=========================== short test summary info ============================
SKIPPED [1] testing/test_capture.py:894: python2 has no buffer
SKIPPED [2] testing/test_capture.py:1121: text output different for bytes on python3
SKIPPED [2] /testbed/testing/test_capture.py:963: could not run 'lsof'
SKIPPED [1] testing/test_capture.py:1391: only py3.6+ on windows
SKIPPED [1] testing/test_capture.py:565: only have capsysbinary in python 3
XFAIL testing/test_capture.py::TestPerTestCapturing::test_capture_scope_cache
  unimplemented feature
PASSED testing/test_capture.py::TestCaptureManager::test_getmethod_default_no_fd
PASSED testing/test_capture.py::TestCaptureManager::test_capturing_basic_api[no]
PASSED testing/test_capture.py::TestCaptureManager::test_capturing_basic_api[sys]
PASSED testing/test_capture.py::TestCaptureManager::test_capturing_basic_api[fd]
PASSED testing/test_capture.py::TestCaptureManager::test_init_capturing
PASSED testing/test_capture.py::TestCaptureIO::test_text
PASSED testing/test_capture.py::TestCaptureIO::test_unicode_and_str_mixture
PASSED testing/test_capture.py::TestCaptureIO::test_write_bytes_to_buffer
PASSED testing/test_capture.py::test_dontreadfrominput
PASSED testing/test_capture.py::test_dontreadfrominput_buffer_python3
PASSED testing/test_capture.py::test_dupfile_on_bytesio
PASSED testing/test_capture.py::test_dupfile_on_textio
PASSED testing/test_capture.py::TestFDCapture::test_stderr
PASSED testing/test_capture.py::TestFDCapture::test_capfd_sys_stdout_mode
PASSED testing/test_capture.py::TestStdCapture::test_capturing_done_simple
PASSED testing/test_capture.py::TestStdCapture::test_capturing_reset_simple
PASSED testing/test_capture.py::TestStdCapture::test_capturing_readouterr
PASSED testing/test_capture.py::TestStdCapture::test_capture_results_accessible_by_attribute
PASSED testing/test_capture.py::TestStdCapture::test_capturing_readouterr_unicode
PASSED testing/test_capture.py::TestStdCapture::test_reset_twice_error
PASSED testing/test_capture.py::TestStdCapture::test_capturing_modify_sysouterr_in_between
PASSED testing/test_capture.py::TestStdCapture::test_capturing_error_recursive
PASSED testing/test_capture.py::TestStdCapture::test_just_out_capture
PASSED testing/test_capture.py::TestStdCapture::test_just_err_capture
PASSED testing/test_capture.py::TestStdCapture::test_stdin_restored
PASSED testing/test_capture.py::TestStdCapture::test_stdin_nulled_by_default
PASSED testing/test_capture.py::TestStdCaptureFD::test_capturing_done_simple
PASSED testing/test_capture.py::TestStdCaptureFD::test_capturing_reset_simple
PASSED testing/test_capture.py::TestStdCaptureFD::test_capturing_readouterr
PASSED testing/test_capture.py::TestStdCaptureFD::test_capture_results_accessible_by_attribute
PASSED testing/test_capture.py::TestStdCaptureFD::test_capturing_readouterr_unicode
PASSED testing/test_capture.py::TestStdCaptureFD::test_reset_twice_error
PASSED testing/test_capture.py::TestStdCaptureFD::test_capturing_modify_sysouterr_in_between
PASSED testing/test_capture.py::TestStdCaptureFD::test_capturing_error_recursive
PASSED testing/test_capture.py::TestStdCaptureFD::test_just_out_capture
PASSED testing/test_capture.py::TestStdCaptureFD::test_just_err_capture
PASSED testing/test_capture.py::TestStdCaptureFD::test_stdin_restored
PASSED testing/test_capture.py::TestStdCaptureFD::test_stdin_nulled_by_default
PASSED testing/test_capture.py::TestStdCaptureFD::test_intermingling
PASSED testing/test_capture.py::test_capture_not_started_but_reset
PASSED testing/test_capture.py::test_using_capsys_fixture_works_with_sys_stdout_encoding
PASSED testing/test_capture.py::test_capsys_results_accessible_by_attribute
PASSED testing/test_capture.py::test_pickling_and_unpickling_encoded_file
PASSED testing/test_capture.py::test_capturing_unicode[fd]
PASSED testing/test_capture.py::test_capturing_unicode[sys]
PASSED testing/test_capture.py::test_capturing_bytes_in_utf8_encoding[fd]
PASSED testing/test_capture.py::test_capturing_bytes_in_utf8_encoding[sys]
PASSED testing/test_capture.py::test_collect_capturing
PASSED testing/test_capture.py::TestPerTestCapturing::test_capture_and_fixtures
PASSED testing/test_capture.py::TestPerTestCapturing::test_no_carry_over
PASSED testing/test_capture.py::TestPerTestCapturing::test_teardown_capturing
PASSED testing/test_capture.py::TestPerTestCapturing::test_teardown_capturing_final
PASSED testing/test_capture.py::TestPerTestCapturing::test_capturing_outerr
PASSED testing/test_capture.py::TestLoggingInteraction::test_logging_stream_ownership
PASSED testing/test_capture.py::TestLoggingInteraction::test_logging_and_immediate_setupteardown
PASSED testing/test_capture.py::TestLoggingInteraction::test_logging_and_crossscope_fixtures
PASSED testing/test_capture.py::TestLoggingInteraction::test_conftestlogging_is_shown
PASSED testing/test_capture.py::TestLoggingInteraction::test_conftestlogging_and_test_logging
PASSED testing/test_capture.py::TestLoggingInteraction::test_logging_after_cap_stopped
PASSED testing/test_capture.py::TestCaptureFixture::test_std_functional[opt0]
PASSED testing/test_capture.py::TestCaptureFixture::test_std_functional[opt1]
PASSED testing/test_capture.py::TestCaptureFixture::test_capsyscapfd
PASSED testing/test_capture.py::TestCaptureFixture::test_capturing_getfixturevalue
PASSED testing/test_capture.py::TestCaptureFixture::test_capsyscapfdbinary
PASSED testing/test_capture.py::TestCaptureFixture::test_capture_is_represented_on_failure_issue128[sys]
PASSED testing/test_capture.py::TestCaptureFixture::test_capture_is_represented_on_failure_issue128[fd]
PASSED testing/test_capture.py::TestCaptureFixture::test_stdfd_functional
PASSED testing/test_capture.py::TestCaptureFixture::test_capfdbinary
PASSED testing/test_capture.py::TestCaptureFixture::test_capsysbinary
PASSED testing/test_capture.py::TestCaptureFixture::test_partial_setup_failure
PASSED testing/test_capture.py::TestCaptureFixture::test_keyboardinterrupt_disables_capturing
PASSED testing/test_capture.py::TestCaptureFixture::test_capture_and_logging
PASSED testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[True-capsys]
PASSED testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[True-capfd]
PASSED testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[False-capsys]
PASSED testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[False-capfd]
PASSED testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures[capsys]
PASSED testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures[capfd]
PASSED testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures_teardown[capsys]
PASSED testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures_teardown[capfd]
PASSED testing/test_capture.py::test_setup_failure_does_not_kill_capturing
PASSED testing/test_capture.py::test_fdfuncarg_skips_on_no_osdup
PASSED testing/test_capture.py::test_capture_conftest_runtest_setup
PASSED testing/test_capture.py::test_capture_badoutput_issue412
PASSED testing/test_capture.py::test_capture_early_option_parsing
PASSED testing/test_capture.py::test_capture_binary_output
PASSED testing/test_capture.py::test_error_during_readouterr
PASSED testing/test_capture.py::test_dupfile
PASSED testing/test_capture.py::TestFDCapture::test_simple
PASSED testing/test_capture.py::TestFDCapture::test_simple_many
PASSED testing/test_capture.py::TestFDCapture::test_simple_fail_second_start
PASSED testing/test_capture.py::TestFDCapture::test_stdin
PASSED testing/test_capture.py::TestFDCapture::test_writeorg
PASSED testing/test_capture.py::TestFDCapture::test_simple_resume_suspend
PASSED testing/test_capture.py::TestStdCaptureFD::test_simple_only_fd
PASSED testing/test_capture.py::TestStdCaptureFDinvalidFD::test_stdcapture_fd_invalid_fd
PASSED testing/test_capture.py::test_fdcapture_tmpfile_remains_the_same[True]
PASSED testing/test_capture.py::test_fdcapture_tmpfile_remains_the_same[False]
PASSED testing/test_capture.py::test_close_and_capture_again
PASSED testing/test_capture.py::test_capturing_and_logging_fundamentals[SysCapture]
PASSED testing/test_capture.py::test_capturing_and_logging_fundamentals[FDCapture]
PASSED testing/test_capture.py::test_error_attribute_issue555
PASSED testing/test_capture.py::test_dontreadfrominput_has_encoding
PASSED testing/test_capture.py::test_crash_on_closing_tmpfile_py27
PASSED testing/test_capture.py::test_global_capture_with_live_logging
PASSED testing/test_capture.py::test_capture_with_live_logging[capsys]
PASSED testing/test_capture.py::test_capture_with_live_logging[capfd]
PASSED testing/test_capture.py::test_typeerror_encodedfile_write
=============== 108 passed, 7 skipped, 1 xfailed in 8.90 seconds ===============
+ source /opt/miniconda3/bin/activate
++ _CONDA_ROOT=/opt/miniconda3
++ . /opt/miniconda3/etc/profile.d/conda.sh
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ '[' -z '' ']'
+++ export CONDA_SHLVL=0
+++ CONDA_SHLVL=0
+++ '[' -n '' ']'
+++++ dirname /opt/miniconda3/bin/conda
++++ dirname /opt/miniconda3/bin
+++ PATH=/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export PATH
+++ '[' -z '' ']'
+++ PS1=
++ conda activate
++ local cmd=activate
++ case "$cmd" in
++ __conda_activate activate
++ '[' -n '' ']'
++ local ask_conda
+++ PS1=
+++ __conda_exe shell.posix activate
+++ /opt/miniconda3/bin/conda shell.posix activate
++ ask_conda='PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''1'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ eval 'PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''1'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+++ PS1='(base) '
+++ export PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export CONDA_PREFIX=/opt/miniconda3
+++ CONDA_PREFIX=/opt/miniconda3
+++ export CONDA_SHLVL=1
+++ CONDA_SHLVL=1
+++ export CONDA_DEFAULT_ENV=base
+++ CONDA_DEFAULT_ENV=base
+++ export 'CONDA_PROMPT_MODIFIER=(base) '
+++ CONDA_PROMPT_MODIFIER='(base) '
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ __conda_hashr
++ '[' -n '' ']'
++ '[' -n '' ']'
++ hash -r
+ conda activate testbed
+ local cmd=activate
+ case "$cmd" in
+ __conda_activate activate testbed
+ '[' -n '' ']'
+ local ask_conda
++ PS1='(base) '
++ __conda_exe shell.posix activate testbed
++ /opt/miniconda3/bin/conda shell.posix activate testbed
+ ask_conda='PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''2'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_1='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+ eval 'PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''2'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_1='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ PS1='(testbed) '
++ export PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ export CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ export CONDA_SHLVL=2
++ CONDA_SHLVL=2
++ export CONDA_DEFAULT_ENV=testbed
++ CONDA_DEFAULT_ENV=testbed
++ export 'CONDA_PROMPT_MODIFIER=(testbed) '
++ CONDA_PROMPT_MODIFIER='(testbed) '
++ export CONDA_PREFIX_1=/opt/miniconda3
++ CONDA_PREFIX_1=/opt/miniconda3
++ export CONDA_EXE=/opt/miniconda3/bin/conda
++ CONDA_EXE=/opt/miniconda3/bin/conda
++ export _CE_M=
++ _CE_M=
++ export _CE_CONDA=
++ _CE_CONDA=
++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+ __conda_hashr
+ '[' -n '' ']'
+ '[' -n '' ']'
+ hash -r
+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git status
+ git show
+ git -c core.fileMode=false diff 58e6a09db49f34886ff13f3b7520dd0bcd7063cd
+ source /opt/miniconda3/bin/activate
++ _CONDA_ROOT=/opt/miniconda3
++ . /opt/miniconda3/etc/profile.d/conda.sh
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ '[' -z x ']'
++ conda activate
++ local cmd=activate
++ case "$cmd" in
++ __conda_activate activate
++ '[' -n '' ']'
++ local ask_conda
+++ PS1='(testbed) '
+++ __conda_exe shell.posix activate
+++ /opt/miniconda3/bin/conda shell.posix activate
++ ask_conda='PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''3'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_PREFIX_2='\''/opt/miniconda3/envs/testbed'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ eval 'PS1='\''(base) '\''
export PATH='\''/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3'\''
export CONDA_SHLVL='\''3'\''
export CONDA_DEFAULT_ENV='\''base'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
export CONDA_PREFIX_2='\''/opt/miniconda3/envs/testbed'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+++ PS1='(base) '
+++ export PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ PATH=/opt/miniconda3/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export CONDA_PREFIX=/opt/miniconda3
+++ CONDA_PREFIX=/opt/miniconda3
+++ export CONDA_SHLVL=3
+++ CONDA_SHLVL=3
+++ export CONDA_DEFAULT_ENV=base
+++ CONDA_DEFAULT_ENV=base
+++ export 'CONDA_PROMPT_MODIFIER=(base) '
+++ CONDA_PROMPT_MODIFIER='(base) '
+++ export CONDA_PREFIX_2=/opt/miniconda3/envs/testbed
+++ CONDA_PREFIX_2=/opt/miniconda3/envs/testbed
+++ export CONDA_EXE=/opt/miniconda3/bin/conda
+++ CONDA_EXE=/opt/miniconda3/bin/conda
+++ export _CE_M=
+++ _CE_M=
+++ export _CE_CONDA=
+++ _CE_CONDA=
+++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ __conda_hashr
++ '[' -n '' ']'
++ '[' -n '' ']'
++ hash -r
+ conda activate testbed
+ local cmd=activate
+ case "$cmd" in
+ __conda_activate activate testbed
+ '[' -n '' ']'
+ local ask_conda
++ PS1='(base) '
++ __conda_exe shell.posix activate testbed
++ /opt/miniconda3/bin/conda shell.posix activate testbed
+ ask_conda='PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''4'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_3='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
+ eval 'PS1='\''(testbed) '\''
export PATH='\''/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
export CONDA_PREFIX='\''/opt/miniconda3/envs/testbed'\''
export CONDA_SHLVL='\''4'\''
export CONDA_DEFAULT_ENV='\''testbed'\''
export CONDA_PROMPT_MODIFIER='\''(testbed) '\''
export CONDA_PREFIX_3='\''/opt/miniconda3'\''
export CONDA_EXE='\''/opt/miniconda3/bin/conda'\''
export _CE_M='\'''\''
export _CE_CONDA='\'''\''
export CONDA_PYTHON_EXE='\''/opt/miniconda3/bin/python'\'''
++ PS1='(testbed) '
++ export PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin:/opt/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ export CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ CONDA_PREFIX=/opt/miniconda3/envs/testbed
++ export CONDA_SHLVL=4
++ CONDA_SHLVL=4
++ export CONDA_DEFAULT_ENV=testbed
++ CONDA_DEFAULT_ENV=testbed
++ export 'CONDA_PROMPT_MODIFIER=(testbed) '
++ CONDA_PROMPT_MODIFIER='(testbed) '
++ export CONDA_PREFIX_3=/opt/miniconda3
++ CONDA_PREFIX_3=/opt/miniconda3
++ export CONDA_EXE=/opt/miniconda3/bin/conda
++ CONDA_EXE=/opt/miniconda3/bin/conda
++ export _CE_M=
++ _CE_M=
++ export _CE_CONDA=
++ _CE_CONDA=
++ export CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
++ CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
+ __conda_hashr
+ '[' -n '' ']'
+ '[' -n '' ']'
+ hash -r
+ python -m pip install -e .
+ git checkout 58e6a09db49f34886ff13f3b7520dd0bcd7063cd testing/test_capture.py
Updated 1 path from c064b3d3
+ git apply -v -
Checking patch testing/test_capture.py...
Applied patch testing/test_capture.py cleanly.
+ : '>>>>> Start Test Output'
+ pytest -rA testing/test_capture.py
+ : '>>>>> End Test Output'
+ git checkout 58e6a09db49f34886ff13f3b7520dd0bcd7063cd testing/test_capture.py
Updated 1 path from c064b3d3
