[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001371: pytest-twisted: (autopkgtest) needs update for python3.10: E {'warnings': 2} != {'warnings': 1}



Source: pytest-twisted
Version: 1.13.2-1
Severity: serious
X-Debbugs-CC: debian-ci@lists.debian.org
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python2.10 to the supported Python versions [0]. With a recent upload of python3-defaults the autopkgtest of pytest-twisted fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.9.8-1
pytest-twisted         from testing    1.13.2-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists what's new in Python2.10, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/p/pytest-twisted/17393456/log.gz

=================================== FAILURES =================================== ___ test_inline_callbacks_in_pytest_deprecation[pytest.inlineCallbacks-True] ___

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
decorator = 'pytest.inlineCallbacks', should_warn = True

    @pytest.mark.parametrize(
        'decorator, should_warn',
        (
            ('pytest.inlineCallbacks', True),
            ('pytest_twisted.inlineCallbacks', False),
        ),
    )
    def test_inline_callbacks_in_pytest_deprecation(
            testdir,
            cmd_opts,
            decorator,
            should_warn,
    ):
        import_path, _, _ = decorator.rpartition('.')
        test_file = """
        import {import_path}
            def test_deprecation():
            @{decorator}
            def f():
                yield 42
        """.format(import_path=import_path, decorator=decorator)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
            expected_outcomes = {"passed": 1}
        if should_warn:
            expected_outcomes["warnings"] = 1
    >       assert_outcomes(rr, expected_outcomes)

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:134: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=20 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1, 'warnings': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_inline_callbacks_in_pytest_deprecation.py::test_deprecation PASSED [100%] E E =============================== warnings summary ===============================
E         test_inline_callbacks_in_pytest_deprecation.py::test_deprecation
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E E test_inline_callbacks_in_pytest_deprecation.py::test_deprecation E /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation0/test_inline_callbacks_in_pytest_deprecation.py:5: DeprecationWarning: pytest.inlineCallbacks has been deprecated, use pytest_twisted.inlineCallbacks
E             def f():
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ======================== 1 passed, 2 warnings in 0.01s =========================
E         ---- stderr
E         E         ----
E E assert {'passed': 1, 'warnings': 2} == {'passed': 1, 'warnings': 1}
E         Omitting 1 identical items, use -vv to show
E         Differing items:
E         {'warnings': 2} != {'warnings': 1}
E         Full diff:
E         - {'passed': 1, 'warnings': 1}
E         ?                           ^
E         + {'passed': 1, 'warnings': 2}...
E E ...Full output truncated (2 lines hidden), use '-vv' to show

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_inline_callbacks_in_pytest_deprecation.py::test_deprecation PASSED [100%]

=============================== warnings summary ===============================
test_inline_callbacks_in_pytest_deprecation.py::test_deprecation
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

test_inline_callbacks_in_pytest_deprecation.py::test_deprecation

/tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation0/test_inline_callbacks_in_pytest_deprecation.py:5: DeprecationWarning: pytest.inlineCallbacks has been deprecated, use pytest_twisted.inlineCallbacks
    def f():

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 1 passed, 2 warnings in 0.01s ========================= _ test_inline_callbacks_in_pytest_deprecation[pytest_twisted.inlineCallbacks-False] _

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
decorator = 'pytest_twisted.inlineCallbacks', should_warn = False

    @pytest.mark.parametrize(
        'decorator, should_warn',
        (
            ('pytest.inlineCallbacks', True),
            ('pytest_twisted.inlineCallbacks', False),
        ),
    )
    def test_inline_callbacks_in_pytest_deprecation(
            testdir,
            cmd_opts,
            decorator,
            should_warn,
    ):
        import_path, _, _ = decorator.rpartition('.')
        test_file = """
        import {import_path}
            def test_deprecation():
            @{decorator}
            def f():
                yield 42
        """.format(import_path=import_path, decorator=decorator)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
            expected_outcomes = {"passed": 1}
        if should_warn:
            expected_outcomes["warnings"] = 1
    >       assert_outcomes(rr, expected_outcomes)

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:134: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation1
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_inline_callbacks_in_pytest_deprecation.py::test_deprecation PASSED [100%] E E =============================== warnings summary ===============================
E         test_inline_callbacks_in_pytest_deprecation.py::test_deprecation
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation1 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_inline_callbacks_in_pytest_deprecation1
plugins: twisted-1.13.2
collecting ... collected 1 item

test_inline_callbacks_in_pytest_deprecation.py::test_deprecation PASSED [100%]

=============================== warnings summary ===============================
test_inline_callbacks_in_pytest_deprecation.py::test_deprecation
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= ___________ test_blockon_in_pytest_deprecation[pytest.blockon-True] ____________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
function = 'pytest.blockon', should_warn = True

    @pytest.mark.parametrize(
        'function, should_warn',
        (
            ('pytest.blockon', True),
            ('pytest_twisted.blockon', False),
        ),
    )
    def test_blockon_in_pytest_deprecation(
            testdir,
            cmd_opts,
            function,
            should_warn,
    ):
        import_path, _, _ = function.rpartition('.')
        test_file = """
        import warnings
            from twisted.internet import reactor, defer
        import pytest
        import {import_path}
            @pytest.fixture
        def foo(request):
            d = defer.Deferred()
            d.callback(None)
            {function}(d)
            def test_succeed(foo):
            pass
        """.format(import_path=import_path, function=function)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
            expected_outcomes = {"passed": 1}
        if should_warn:
            expected_outcomes["warnings"] = 1
    >       assert_outcomes(rr, expected_outcomes)

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=20 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1, 'warnings': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_blockon_in_pytest_deprecation.py::test_succeed PASSED [100%] E E =============================== warnings summary ===============================
E         test_blockon_in_pytest_deprecation.py::test_succeed
E /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation0/test_blockon_in_pytest_deprecation.py:11: DeprecationWarning: pytest.blockon has been deprecated, use pytest_twisted.blockon
E             pytest.blockon(d)
E         E         test_blockon_in_pytest_deprecation.py::test_succeed
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ======================== 1 passed, 2 warnings in 0.01s =========================
E         ---- stderr
E         E         ----
E E assert {'passed': 1, 'warnings': 2} == {'passed': 1, 'warnings': 1}
E         Omitting 1 identical items, use -vv to show
E         Differing items:
E         {'warnings': 2} != {'warnings': 1}
E         Full diff:
E         - {'passed': 1, 'warnings': 1}
E         ?                           ^
E         + {'passed': 1, 'warnings': 2}...
E E ...Full output truncated (2 lines hidden), use '-vv' to show

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_blockon_in_pytest_deprecation.py::test_succeed PASSED [100%]

=============================== warnings summary ===============================
test_blockon_in_pytest_deprecation.py::test_succeed

/tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation0/test_blockon_in_pytest_deprecation.py:11: DeprecationWarning: pytest.blockon has been deprecated, use pytest_twisted.blockon
    pytest.blockon(d)

test_blockon_in_pytest_deprecation.py::test_succeed
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 1 passed, 2 warnings in 0.01s ========================= _______ test_blockon_in_pytest_deprecation[pytest_twisted.blockon-False] _______

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
function = 'pytest_twisted.blockon', should_warn = False

    @pytest.mark.parametrize(
        'function, should_warn',
        (
            ('pytest.blockon', True),
            ('pytest_twisted.blockon', False),
        ),
    )
    def test_blockon_in_pytest_deprecation(
            testdir,
            cmd_opts,
            function,
            should_warn,
    ):
        import_path, _, _ = function.rpartition('.')
        test_file = """
        import warnings
            from twisted.internet import reactor, defer
        import pytest
        import {import_path}
            @pytest.fixture
        def foo(request):
            d = defer.Deferred()
            d.callback(None)
            {function}(d)
            def test_succeed(foo):
            pass
        """.format(import_path=import_path, function=function)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
            expected_outcomes = {"passed": 1}
        if should_warn:
            expected_outcomes["warnings"] = 1
    >       assert_outcomes(rr, expected_outcomes)

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation1
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_blockon_in_pytest_deprecation.py::test_succeed PASSED [100%] E E =============================== warnings summary ===============================
E         test_blockon_in_pytest_deprecation.py::test_succeed
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation1
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_pytest_deprecation1
plugins: twisted-1.13.2
collecting ... collected 1 item

test_blockon_in_pytest_deprecation.py::test_succeed PASSED [100%]

=============================== warnings summary ===============================
test_blockon_in_pytest_deprecation.py::test_succeed
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= _______________________________ test_fail_later ________________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_fail_later0')>
cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    def test_fail_later(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
            def test_fail():
            def doit():
                try:
                    1 / 0
                except:
                    d.errback()
                d = defer.Deferred()
            reactor.callLater(0.01, doit)
            return d
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=27 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_fail_later0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_fail_later.py::test_fail FAILED [100%] E E =================================== FAILURES =================================== E __________________________________ test_fail ___________________________________
E         E             def doit():
E                 try:
E         >           1 / 0
E         E           ZeroDivisionError: division by zero
E         E         test_fail_later.py:6: ZeroDivisionError
E =============================== warnings summary ===============================
E         test_fail_later.py::test_fail
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_fail_later.py::test_fail - ZeroDivisionError: division by zero E ========================= 1 failed, 1 warning in 0.06s =========================
E         ---- stderr
E         E         ----
E         E       assert {'failed': 1, 'warnings': 1} == {'failed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1}
E         + {'failed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_fail_later0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_fail_later0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_fail_later.py::test_fail FAILED [100%]

=================================== FAILURES =================================== __________________________________ test_fail ___________________________________

    def doit():
        try:
          1 / 0
E           ZeroDivisionError: division by zero

test_fail_later.py:6: ZeroDivisionError
=============================== warnings summary ===============================
test_fail_later.py::test_fail
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_fail_later.py::test_fail - ZeroDivisionError: division by zero
========================= 1 failed, 1 warning in 0.06s ========================= ______________________________ test_succeed_later ______________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_succeed_later0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    def test_succeed_later(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
            def test_succeed():
            d = defer.Deferred()
            reactor.callLater(0.01, d.callback, 1)
            return d
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_succeed_later0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_succeed_later.py::test_succeed PASSED [100%] E E =============================== warnings summary ===============================
E         test_succeed_later.py::test_succeed
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.02s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_succeed_later0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_succeed_later0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_succeed_later.py::test_succeed PASSED [100%]

=============================== warnings summary ===============================
test_succeed_later.py::test_succeed
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.02s ========================= ______________________________ test_non_deferred _______________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_non_deferred0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    def test_non_deferred(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
            def test_succeed():
            return 42
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_non_deferred0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_non_deferred.py::test_succeed PASSED [100%] E E =============================== warnings summary ===============================
E         test_non_deferred.py::test_succeed
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_non_deferred0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_non_deferred0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_non_deferred.py::test_succeed PASSED [100%]

=============================== warnings summary ===============================
test_non_deferred.py::test_succeed
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= ________________________________ test_exception ________________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_exception0')>
cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    def test_exception(testdir, cmd_opts):
        test_file = """
        def test_more_fail():
            raise RuntimeError("foo")
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=26 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_exception0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_exception.py::test_more_fail FAILED [100%] E E =================================== FAILURES =================================== E ________________________________ test_more_fail ________________________________
E         E             def test_more_fail():
E         >       raise RuntimeError("foo")
E         E       RuntimeError: foo
E         E         test_exception.py:2: RuntimeError
E =============================== warnings summary ===============================
E         test_exception.py::test_more_fail
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================
E         FAILED test_exception.py::test_more_fail - RuntimeError: foo
E ========================= 1 failed, 1 warning in 0.04s =========================
E         ---- stderr
E         E         ----
E         E       assert {'failed': 1, 'warnings': 1} == {'failed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1}
E         + {'failed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_exception0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_exception0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_exception.py::test_more_fail FAILED [100%]

=================================== FAILURES =================================== ________________________________ test_more_fail ________________________________

    def test_more_fail():
      raise RuntimeError("foo")
E       RuntimeError: foo

test_exception.py:2: RuntimeError
=============================== warnings summary ===============================
test_exception.py::test_more_fail
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_exception.py::test_more_fail - RuntimeError: foo
========================= 1 failed, 1 warning in 0.04s ========================= ________________________ test_inlineCallbacks[no call] _________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_inlineCallbacks0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = ''

    def test_inlineCallbacks(testdir, cmd_opts, empty_optional_call):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest.fixture(scope="module", params=["fs", "imap", "web"])
        def foo(request):
            return request.param
            @pytest_twisted.inlineCallbacks{optional_call}
        def test_succeed(foo):
            yield defer.succeed(foo)
            if foo == "web":
                raise RuntimeError("baz")
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_inlineCallbacks0
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_inlineCallbacks.py::test_succeed[fs] PASSED [ 33%] E test_inlineCallbacks.py::test_succeed[imap] PASSED [ 66%] E test_inlineCallbacks.py::test_succeed[web] FAILED [100%] E E =================================== FAILURES =================================== E ______________________________ test_succeed[web] _______________________________
E         E         foo = 'web'
E         E             @pytest_twisted.inlineCallbacks
E             def test_succeed(foo):
E                 yield defer.succeed(foo)
E                 if foo == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_inlineCallbacks.py:13: RuntimeError
E =============================== warnings summary ===============================
E         test_inlineCallbacks.py::test_succeed[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_inlineCallbacks.py::test_succeed[web] - RuntimeError: baz E ==================== 1 failed, 2 passed, 1 warning in 0.05s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_inlineCallbacks0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_inlineCallbacks0
plugins: twisted-1.13.2
collecting ... collected 3 items

test_inlineCallbacks.py::test_succeed[fs] PASSED [ 33%] test_inlineCallbacks.py::test_succeed[imap] PASSED [ 66%] test_inlineCallbacks.py::test_succeed[web] FAILED [100%]

=================================== FAILURES =================================== ______________________________ test_succeed[web] _______________________________

foo = 'web'

    @pytest_twisted.inlineCallbacks
    def test_succeed(foo):
        yield defer.succeed(foo)
        if foo == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_inlineCallbacks.py:13: RuntimeError
=============================== warnings summary ===============================
test_inlineCallbacks.py::test_succeed[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_inlineCallbacks.py::test_succeed[web] - RuntimeError: baz
==================== 1 failed, 2 passed, 1 warning in 0.05s ==================== _______________________ test_inlineCallbacks[empty call] _______________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_inlineCallbacks1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = '()'

    def test_inlineCallbacks(testdir, cmd_opts, empty_optional_call):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest.fixture(scope="module", params=["fs", "imap", "web"])
        def foo(request):
            return request.param
            @pytest_twisted.inlineCallbacks{optional_call}
        def test_succeed(foo):
            yield defer.succeed(foo)
            if foo == "web":
                raise RuntimeError("baz")
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_inlineCallbacks1
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_inlineCallbacks.py::test_succeed[fs] PASSED [ 33%] E test_inlineCallbacks.py::test_succeed[imap] PASSED [ 66%] E test_inlineCallbacks.py::test_succeed[web] FAILED [100%] E E =================================== FAILURES =================================== E ______________________________ test_succeed[web] _______________________________
E         E         foo = 'web'
E         E             @pytest_twisted.inlineCallbacks()
E             def test_succeed(foo):
E                 yield defer.succeed(foo)
E                 if foo == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_inlineCallbacks.py:13: RuntimeError
E =============================== warnings summary ===============================
E         test_inlineCallbacks.py::test_succeed[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_inlineCallbacks.py::test_succeed[web] - RuntimeError: baz E ==================== 1 failed, 2 passed, 1 warning in 0.05s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_inlineCallbacks1
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_inlineCallbacks1
plugins: twisted-1.13.2
collecting ... collected 3 items

test_inlineCallbacks.py::test_succeed[fs] PASSED [ 33%] test_inlineCallbacks.py::test_succeed[imap] PASSED [ 66%] test_inlineCallbacks.py::test_succeed[web] FAILED [100%]

=================================== FAILURES =================================== ______________________________ test_succeed[web] _______________________________

foo = 'web'

    @pytest_twisted.inlineCallbacks()
    def test_succeed(foo):
        yield defer.succeed(foo)
        if foo == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_inlineCallbacks.py:13: RuntimeError
=============================== warnings summary ===============================
test_inlineCallbacks.py::test_succeed[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_inlineCallbacks.py::test_succeed[web] - RuntimeError: baz
==================== 1 failed, 2 passed, 1 warning in 0.05s ==================== __________________________ test_async_await[no call] ___________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_await0')>
cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = ''

    @skip_if_no_async_await()
    def test_async_await(testdir, cmd_opts, empty_optional_call):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest.fixture(scope="module", params=["fs", "imap", "web"])
        def foo(request):
            return request.param
            @pytest_twisted.ensureDeferred{optional_call}
        async def test_succeed(foo):
            await defer.succeed(foo)
            if foo == "web":
                raise RuntimeError("baz")
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:286: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_async_await0
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_async_await.py::test_succeed[fs] PASSED [ 33%] E test_async_await.py::test_succeed[imap] PASSED [ 66%] E test_async_await.py::test_succeed[web] FAILED [100%] E E =================================== FAILURES =================================== E ______________________________ test_succeed[web] _______________________________
E         E         foo = 'web'
E         E             @pytest_twisted.ensureDeferred
E             async def test_succeed(foo):
E                 await defer.succeed(foo)
E                 if foo == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_async_await.py:13: RuntimeError
E =============================== warnings summary ===============================
E         test_async_await.py::test_succeed[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================
E         FAILED test_async_await.py::test_succeed[web] - RuntimeError: baz
E ==================== 1 failed, 2 passed, 1 warning in 0.07s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_await0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_await0
plugins: twisted-1.13.2
collecting ... collected 3 items

test_async_await.py::test_succeed[fs] PASSED [ 33%] test_async_await.py::test_succeed[imap] PASSED [ 66%] test_async_await.py::test_succeed[web] FAILED [100%]

=================================== FAILURES =================================== ______________________________ test_succeed[web] _______________________________

foo = 'web'

    @pytest_twisted.ensureDeferred
    async def test_succeed(foo):
        await defer.succeed(foo)
        if foo == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_async_await.py:13: RuntimeError
=============================== warnings summary ===============================
test_async_await.py::test_succeed[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_async_await.py::test_succeed[web] - RuntimeError: baz
==================== 1 failed, 2 passed, 1 warning in 0.07s ==================== _________________________ test_async_await[empty call] _________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_await1')>
cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = '()'

    @skip_if_no_async_await()
    def test_async_await(testdir, cmd_opts, empty_optional_call):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest.fixture(scope="module", params=["fs", "imap", "web"])
        def foo(request):
            return request.param
            @pytest_twisted.ensureDeferred{optional_call}
        async def test_succeed(foo):
            await defer.succeed(foo)
            if foo == "web":
                raise RuntimeError("baz")
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:286: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.62s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_async_await1
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_async_await.py::test_succeed[fs] PASSED [ 33%] E test_async_await.py::test_succeed[imap] PASSED [ 66%] E test_async_await.py::test_succeed[web] FAILED [100%] E E =================================== FAILURES =================================== E ______________________________ test_succeed[web] _______________________________
E         E         foo = 'web'
E         E             @pytest_twisted.ensureDeferred()
E             async def test_succeed(foo):
E                 await defer.succeed(foo)
E                 if foo == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_async_await.py:13: RuntimeError
E =============================== warnings summary ===============================
E         test_async_await.py::test_succeed[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================
E         FAILED test_async_await.py::test_succeed[web] - RuntimeError: baz
E ==================== 1 failed, 2 passed, 1 warning in 0.06s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_await1
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_await1
plugins: twisted-1.13.2
collecting ... collected 3 items

test_async_await.py::test_succeed[fs] PASSED [ 33%] test_async_await.py::test_succeed[imap] PASSED [ 66%] test_async_await.py::test_succeed[web] FAILED [100%]

=================================== FAILURES =================================== ______________________________ test_succeed[web] _______________________________

foo = 'web'

    @pytest_twisted.ensureDeferred()
    async def test_succeed(foo):
        await defer.succeed(foo)
        if foo == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_async_await.py:13: RuntimeError
=============================== warnings summary ===============================
test_async_await.py::test_succeed[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_async_await.py::test_succeed[web] - RuntimeError: baz
==================== 1 failed, 2 passed, 1 warning in 0.06s ==================== ____________________________ test_twisted_greenlet _____________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_twisted_greenlet0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    def test_twisted_greenlet(testdir, cmd_opts):
        test_file = """
        import pytest, greenlet
            MAIN = None
            @pytest.fixture(scope="session", autouse=True)
        def set_MAIN(request, twisted_greenlet):
            global MAIN
            MAIN = twisted_greenlet
            def test_MAIN():
            assert MAIN is not None
            assert MAIN is greenlet.getcurrent()
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:306: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_twisted_greenlet0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_twisted_greenlet.py::test_MAIN PASSED [100%] E E =============================== warnings summary ===============================
E         test_twisted_greenlet.py::test_MAIN
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_twisted_greenlet0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_twisted_greenlet0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_twisted_greenlet.py::test_MAIN PASSED [100%]

=============================== warnings summary ===============================
test_twisted_greenlet.py::test_MAIN
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= ___________________________ test_blockon_in_fixture ____________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    def test_blockon_in_fixture(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest.fixture(scope="module", params=["fs", "imap", "web"])
        def foo(request):
            d1, d2 = defer.Deferred(), defer.Deferred()
            reactor.callLater(0.01, d1.callback, 1)
            reactor.callLater(0.02, d2.callback, request.param)
            pytest_twisted.blockon(d1)
            return d2
            @pytest_twisted.inlineCallbacks
        def test_succeed(foo):
            x = yield foo
            if x == "web":
                raise RuntimeError("baz")
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:331: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.62s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E         rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_blockon_in_fixture.py::test_succeed[fs] PASSED [ 33%] E test_blockon_in_fixture.py::test_succeed[imap] PASSED [ 66%] E test_blockon_in_fixture.py::test_succeed[web] FAILED [100%] E E =================================== FAILURES =================================== E ______________________________ test_succeed[web] _______________________________
E         E         foo = <Deferred at 0x7fb126c16440 current result: 'web'>
E         E             @pytest_twisted.inlineCallbacks
E             def test_succeed(foo):
E                 x = yield foo
E                 if x == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_blockon_in_fixture.py:17: RuntimeError
E =============================== warnings summary ===============================
E         test_blockon_in_fixture.py::test_succeed[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_blockon_in_fixture.py::test_succeed[web] - RuntimeError: baz E ==================== 1 failed, 2 passed, 1 warning in 0.12s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture0
plugins: twisted-1.13.2
collecting ... collected 3 items

test_blockon_in_fixture.py::test_succeed[fs] PASSED [ 33%] test_blockon_in_fixture.py::test_succeed[imap] PASSED [ 66%] test_blockon_in_fixture.py::test_succeed[web] FAILED [100%]

=================================== FAILURES =================================== ______________________________ test_succeed[web] _______________________________

foo = <Deferred at 0x7fb126c16440 current result: 'web'>

    @pytest_twisted.inlineCallbacks
    def test_succeed(foo):
        x = yield foo
        if x == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_blockon_in_fixture.py:17: RuntimeError
=============================== warnings summary ===============================
test_blockon_in_fixture.py::test_succeed[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_blockon_in_fixture.py::test_succeed[web] - RuntimeError: baz
==================== 1 failed, 2 passed, 1 warning in 0.12s ==================== ________________________ test_blockon_in_fixture_async _________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture_async0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_await()
    def test_blockon_in_fixture_async(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest.fixture(scope="module", params=["fs", "imap", "web"])
        def foo(request):
            d1, d2 = defer.Deferred(), defer.Deferred()
            reactor.callLater(0.01, d1.callback, 1)
            reactor.callLater(0.02, d2.callback, request.param)
            pytest_twisted.blockon(d1)
            return d2
            @pytest_twisted.ensureDeferred
        async def test_succeed(foo):
            x = await foo
            if x == "web":
                raise RuntimeError("baz")
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:357: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.62s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture_async0
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_blockon_in_fixture_async.py::test_succeed[fs] PASSED [ 33%] E test_blockon_in_fixture_async.py::test_succeed[imap] PASSED [ 66%] E test_blockon_in_fixture_async.py::test_succeed[web] FAILED [100%] E E =================================== FAILURES =================================== E ______________________________ test_succeed[web] _______________________________
E         E         foo = <Deferred at 0x7fb32a43f880 current result: 'web'>
E         E             @pytest_twisted.ensureDeferred
E             async def test_succeed(foo):
E                 x = await foo
E                 if x == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_blockon_in_fixture_async.py:17: RuntimeError
E =============================== warnings summary ===============================
E         test_blockon_in_fixture_async.py::test_succeed[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_blockon_in_fixture_async.py::test_succeed[web] - RuntimeError: baz E ==================== 1 failed, 2 passed, 1 warning in 0.13s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture_async0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_blockon_in_fixture_async0
plugins: twisted-1.13.2
collecting ... collected 3 items

test_blockon_in_fixture_async.py::test_succeed[fs] PASSED [ 33%] test_blockon_in_fixture_async.py::test_succeed[imap] PASSED [ 66%] test_blockon_in_fixture_async.py::test_succeed[web] FAILED [100%]

=================================== FAILURES =================================== ______________________________ test_succeed[web] _______________________________

foo = <Deferred at 0x7fb32a43f880 current result: 'web'>

    @pytest_twisted.ensureDeferred
    async def test_succeed(foo):
        x = await foo
        if x == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_blockon_in_fixture_async.py:17: RuntimeError
=============================== warnings summary ===============================
test_blockon_in_fixture_async.py::test_succeed[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ FAILED test_blockon_in_fixture_async.py::test_succeed[web] - RuntimeError: baz ==================== 1 failed, 2 passed, 1 warning in 0.13s ==================== ______________________________ test_async_fixture ______________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_await()
    def test_async_fixture(testdir, cmd_opts):
        pytest_ini_file = """
        [pytest]
        markers =
            redgreenblue
        """
        testdir.makefile('.ini', pytest=pytest_ini_file)
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_fixture(
            scope="function",
            params=["fs", "imap", "web"],
        )
        @pytest.mark.redgreenblue
        async def foo(request):
            d1, d2 = defer.Deferred(), defer.Deferred()
            reactor.callLater(0.01, d1.callback, 1)
            reactor.callLater(0.02, d2.callback, request.param)
            await d1
            return d2,
            @pytest_twisted.inlineCallbacks
        def test_succeed_blue(foo):
            x = yield foo[0]
            if x == "web":
                raise RuntimeError("baz")
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:393: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=33 len(stderr.lines)=0 duration=0.67s>
outcomes = {'failed': 1, 'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture0, configfile: pytest.ini
E         plugins: twisted-1.13.2
E         collecting ... collected 3 items
E E test_async_fixture.py::test_succeed_blue[fs] PASSED [ 33%] E test_async_fixture.py::test_succeed_blue[imap] PASSED [ 66%] E test_async_fixture.py::test_succeed_blue[web] FAILED [100%] E E =================================== FAILURES =================================== E ____________________________ test_succeed_blue[web] ____________________________ E E foo = (<Deferred at 0x7f7b7275fca0 current result: 'web'>,)
E         E             @pytest_twisted.inlineCallbacks
E             def test_succeed_blue(foo):
E                 x = yield foo[0]
E                 if x == "web":
E         >           raise RuntimeError("baz")
E         E           RuntimeError: baz
E         E         test_async_fixture.py:21: RuntimeError
E =============================== warnings summary ===============================
E         test_async_fixture.py::test_succeed_blue[fs]
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_async_fixture.py::test_succeed_blue[web] - RuntimeError: baz E ==================== 1 failed, 2 passed, 1 warning in 0.14s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 2}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 2}
E         + {'failed': 1, 'passed': 2, 'warnings': 1}
E         ?                          +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_fixture0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture0, configfile: pytest.ini
plugins: twisted-1.13.2
collecting ... collected 3 items

test_async_fixture.py::test_succeed_blue[fs] PASSED [ 33%] test_async_fixture.py::test_succeed_blue[imap] PASSED [ 66%] test_async_fixture.py::test_succeed_blue[web] FAILED [100%]

=================================== FAILURES =================================== ____________________________ test_succeed_blue[web] ____________________________

foo = (<Deferred at 0x7f7b7275fca0 current result: 'web'>,)

    @pytest_twisted.inlineCallbacks
    def test_succeed_blue(foo):
        x = yield foo[0]
        if x == "web":
          raise RuntimeError("baz")
E           RuntimeError: baz

test_async_fixture.py:21: RuntimeError
=============================== warnings summary ===============================
test_async_fixture.py::test_succeed_blue[fs]
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_async_fixture.py::test_succeed_blue[web] - RuntimeError: baz
==================== 1 failed, 2 passed, 1 warning in 0.14s ==================== ___________________ test_async_fixture_no_arguments[no call] ___________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = ''

    @skip_if_no_async_await()
def test_async_fixture_no_arguments(testdir, cmd_opts, empty_optional_call):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_fixture{optional_call}
        async def scope(request):
            return request.scope
            def test_is_function_scope(scope):
            assert scope == "function"
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:412: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_fixture_no_arguments.py::test_is_function_scope PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_fixture_no_arguments.py::test_is_function_scope
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_fixture_no_arguments.py::test_is_function_scope PASSED [100%]

=============================== warnings summary ===============================
test_async_fixture_no_arguments.py::test_is_function_scope
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.03s ========================= _________________ test_async_fixture_no_arguments[empty call] __________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = '()'

    @skip_if_no_async_await()
def test_async_fixture_no_arguments(testdir, cmd_opts, empty_optional_call):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_fixture{optional_call}
        async def scope(request):
            return request.scope
            def test_is_function_scope(scope):
            assert scope == "function"
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:412: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments1
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_fixture_no_arguments.py::test_is_function_scope PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_fixture_no_arguments.py::test_is_function_scope
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments1
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_no_arguments1
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_fixture_no_arguments.py::test_is_function_scope PASSED [100%]

=============================== warnings summary ===============================
test_async_fixture_no_arguments.py::test_is_function_scope
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.03s ========================= __________________ test_async_yield_fixture_ordered_teardown ___________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_ordered_teardown0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_ordered_teardown(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
                results = []
            @pytest.fixture(scope='function')
        def sync_fixture():
            yield 42
            results.append(2)
            @pytest_twisted.async_yield_fixture(scope='function')
        async def async_fixture(sync_fixture):
            yield sync_fixture
            results.append(1)
            def test_first(async_fixture):
            assert async_fixture == 42
            def test_second():
            assert results == [1, 2]
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:443: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_ordered_teardown0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_yield_fixture_ordered_teardown.py::test_first PASSED [ 50%] E test_async_yield_fixture_ordered_teardown.py::test_second PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_ordered_teardown.py::test_first
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_ordered_teardown0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_ordered_teardown0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_yield_fixture_ordered_teardown.py::test_first PASSED [ 50%] test_async_yield_fixture_ordered_teardown.py::test_second PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_ordered_teardown.py::test_first
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= ______________________ test_async_yield_fixture_can_await ______________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_can_await0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_can_await(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest_twisted
            @pytest_twisted.async_yield_fixture()
        async def foo():
            d1, d2 = defer.Deferred(), defer.Deferred()
            reactor.callLater(0.01, d1.callback, 1)
            reactor.callLater(0.02, d2.callback, 2)
            await d1
# Twisted doesn't allow calling back with a Deferred as a value. # This deferred is being wrapped up in a tuple to sneak through. # https://github.com/twisted/twisted/blob/c0f1394c7bfb04d97c725a353a1f678fa6a1c602/src/twisted/internet/defer.py#L459
            yield d2,
            @pytest_twisted.ensureDeferred
        async def test(foo):
            x = await foo[0]
            assert x == 2
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_can_await0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_can_await.py::test PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_can_await.py::test
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.05s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_can_await0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_can_await0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_can_await.py::test PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_can_await.py::test
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.05s ========================= _____________________ test_async_yield_fixture_failed_test _____________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_failed_test0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_failed_test(testdir, cmd_opts):
        test_file = """
        import pytest_twisted
            @pytest_twisted.async_yield_fixture()
        async def foo():
            yield 92
            @pytest_twisted.ensureDeferred
        async def test(foo):
            assert False
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
        rr.stdout.fnmatch_lines(lines2=["E*assert False"])
      assert_outcomes(rr, {"failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:490: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=29 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_failed_test0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_failed_test.py::test FAILED [100%] E E =================================== FAILURES =================================== E _____________________________________ test _____________________________________
E         E         foo = 92
E         E             @pytest_twisted.ensureDeferred
E             async def test(foo):
E         >       assert False
E         E       assert False
E E test_async_yield_fixture_failed_test.py:9: AssertionError E =============================== warnings summary ===============================
E         test_async_yield_fixture_failed_test.py::test
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_async_yield_fixture_failed_test.py::test - assert False E ========================= 1 failed, 1 warning in 0.06s =========================
E         ---- stderr
E         E         ----
E         E       assert {'failed': 1, 'warnings': 1} == {'failed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1}
E         + {'failed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_failed_test0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_failed_test0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_failed_test.py::test FAILED [100%]

=================================== FAILURES =================================== _____________________________________ test _____________________________________

foo = 92

    @pytest_twisted.ensureDeferred
    async def test(foo):
      assert False
E       assert False

test_async_yield_fixture_failed_test.py:9: AssertionError
=============================== warnings summary ===============================
test_async_yield_fixture_failed_test.py::test
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_async_yield_fixture_failed_test.py::test - assert False
========================= 1 failed, 1 warning in 0.06s ========================= ___________________ test_async_yield_fixture_test_exception ____________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_test_exception0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_test_exception(testdir, cmd_opts):
        test_file = """
        import pytest_twisted
            class UniqueLocalException(Exception):
            pass
            @pytest_twisted.async_yield_fixture()
        async def foo():
            yield 92
            @pytest_twisted.ensureDeferred
        async def test(foo):
            raise UniqueLocalException("some message")
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
rr.stdout.fnmatch_lines(lines2=["E*.UniqueLocalException: some message*"])
      assert_outcomes(rr, {"failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=29 len(stderr.lines)=0 duration=0.57s>
outcomes = {'failed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_test_exception0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_test_exception.py::test FAILED [100%] E E =================================== FAILURES =================================== E _____________________________________ test _____________________________________
E         E         foo = 92
E         E             @pytest_twisted.ensureDeferred
E             async def test(foo):
E         >       raise UniqueLocalException("some message")
E E test_async_yield_fixture_test_exception.UniqueLocalException: some message E E test_async_yield_fixture_test_exception.py:12: UniqueLocalException E =============================== warnings summary ===============================
E         test_async_yield_fixture_test_exception.py::test
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_async_yield_fixture_test_exception.py::test - test_async_yield_fi... E ========================= 1 failed, 1 warning in 0.06s =========================
E         ---- stderr
E         E         ----
E         E       assert {'failed': 1, 'warnings': 1} == {'failed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1}
E         + {'failed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_test_exception0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_test_exception0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_test_exception.py::test FAILED [100%]

=================================== FAILURES =================================== _____________________________________ test _____________________________________

foo = 92

    @pytest_twisted.ensureDeferred
    async def test(foo):
      raise UniqueLocalException("some message")
E test_async_yield_fixture_test_exception.UniqueLocalException: some message

test_async_yield_fixture_test_exception.py:12: UniqueLocalException
=============================== warnings summary ===============================
test_async_yield_fixture_test_exception.py::test
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ FAILED test_async_yield_fixture_test_exception.py::test - test_async_yield_fi... ========================= 1 failed, 1 warning in 0.06s ========================= ____________________ test_async_yield_fixture_yields_twice _____________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_yields_twice0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_yields_twice(testdir, cmd_opts):
        test_file = """
        import pytest_twisted
            @pytest_twisted.async_yield_fixture()
        async def foo():
            yield 92
            yield 36
            @pytest_twisted.ensureDeferred
        async def test(foo):
            assert foo == 92
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1, "errors": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:531: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=57 len(stderr.lines)=0 duration=0.67s>
outcomes = {'errors': 1, 'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_yields_twice0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_yields_twice.py::test PASSED [100%] E test_async_yield_fixture_yields_twice.py::test ERROR [100%] E E ==================================== ERRORS ==================================== E __________________________ ERROR at teardown of test ___________________________
E         E             def finalizer():
E         >       _run_inline_callbacks(
E                     _tear_it_down,
E                     defer.ensureDeferred(coroutine.__anext__()),
E                 )
E E /usr/lib/python3/dist-packages/pytest_twisted.py:282: E _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ E /usr/lib/python3/dist-packages/pytest_twisted.py:345: in _run_inline_callbacks
E             blockon_default(d)
E /usr/lib/python3/dist-packages/pytest_twisted.py:97: in blockon_default
E             result[0].raiseException()
E /usr/lib/python3/dist-packages/twisted/python/failure.py:488: in raiseException
E             raise self.value.with_traceback(self.tb)
E /usr/lib/python3/dist-packages/twisted/internet/defer.py:1418: in _inlineCallbacks
E             result = g.send(result)
E _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ E E deferred = <Deferred at 0x7f875b884c10 current result: None>
E         E             @defer.inlineCallbacks
E             def _tear_it_down(deferred):
E                 """Tear down a specific async yield fixture."""
E                 try:
E                     yield deferred
E                 except StopAsyncIteration:
E                     return
E             E                 # TODO: six.raise_from()
E         >       raise AsyncGeneratorFixtureDidNotStopError.from_generator(
E                     generator=deferred,
E                 )
E E pytest_twisted.AsyncGeneratorFixtureDidNotStopError: async fixture did not stop: <Deferred at 0x7f875b884c10 current result: None> E E /usr/lib/python3/dist-packages/pytest_twisted.py:329: AsyncGeneratorFixtureDidNotStopError E =============================== warnings summary ===============================
E         test_async_yield_fixture_yields_twice.py::test
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E ERROR test_async_yield_fixture_yields_twice.py::test - pytest_twisted.AsyncGe... E ==================== 1 passed, 1 warning, 1 error in 0.13s =====================
E         ---- stderr
E         E         ----
E E assert {'errors': 1,...'warnings': 1} == {'errors': 1, 'passed': 1}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'errors': 1, 'passed': 1}
E         + {'errors': 1, 'passed': 1, 'warnings': 1}
E         ?                         +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_yields_twice0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_yields_twice0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_yields_twice.py::test PASSED [100%] test_async_yield_fixture_yields_twice.py::test ERROR [100%]

==================================== ERRORS ==================================== __________________________ ERROR at teardown of test ___________________________

    def finalizer():
      _run_inline_callbacks(
            _tear_it_down,
            defer.ensureDeferred(coroutine.__anext__()),
        )

/usr/lib/python3/dist-packages/pytest_twisted.py:282: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/pytest_twisted.py:345: in _run_inline_callbacks
    blockon_default(d)
/usr/lib/python3/dist-packages/pytest_twisted.py:97: in blockon_default
    result[0].raiseException()
/usr/lib/python3/dist-packages/twisted/python/failure.py:488: in raiseException
    raise self.value.with_traceback(self.tb)
/usr/lib/python3/dist-packages/twisted/internet/defer.py:1418: in _inlineCallbacks
    result = g.send(result)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
deferred = <Deferred at 0x7f875b884c10 current result: None>

    @defer.inlineCallbacks
    def _tear_it_down(deferred):
        """Tear down a specific async yield fixture."""
        try:
            yield deferred
        except StopAsyncIteration:
            return
            # TODO: six.raise_from()
      raise AsyncGeneratorFixtureDidNotStopError.from_generator(
            generator=deferred,
        )
E pytest_twisted.AsyncGeneratorFixtureDidNotStopError: async fixture did not stop: <Deferred at 0x7f875b884c10 current result: None>

/usr/lib/python3/dist-packages/pytest_twisted.py:329: AsyncGeneratorFixtureDidNotStopError =============================== warnings summary ===============================
test_async_yield_fixture_yields_twice.py::test
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ ERROR test_async_yield_fixture_yields_twice.py::test - pytest_twisted.AsyncGe... ==================== 1 passed, 1 warning, 1 error in 0.13s ===================== _________________ test_async_yield_fixture_teardown_exception __________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_teardown_exception0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_teardown_exception(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            class UniqueLocalException(Exception):
            pass
            @pytest_twisted.async_yield_fixture()
        async def foo(request):
            yield 13
                raise UniqueLocalException("some message")
            @pytest_twisted.ensureDeferred
        async def test_succeed(foo):
            assert foo == 13
        """
            testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
rr.stdout.fnmatch_lines(lines2=["E*.UniqueLocalException: some message*"])
      assert_outcomes(rr, {"passed": 1, "errors": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:558: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=32 len(stderr.lines)=0 duration=0.57s>
outcomes = {'errors': 1, 'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_teardown_exception0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_teardown_exception.py::test_succeed PASSED [100%] E test_async_yield_fixture_teardown_exception.py::test_succeed ERROR [100%] E E ==================================== ERRORS ==================================== E ______________________ ERROR at teardown of test_succeed _______________________
E         E         request = <SubRequest 'foo' for <Function test_succeed>>
E         E             @pytest_twisted.async_yield_fixture()
E             async def foo(request):
E                 yield 13
E             E         >       raise UniqueLocalException("some message")
E E test_async_yield_fixture_teardown_exception.UniqueLocalException: some message E E test_async_yield_fixture_teardown_exception.py:12: UniqueLocalException E =============================== warnings summary ===============================
E         test_async_yield_fixture_teardown_exception.py::test_succeed
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E ERROR test_async_yield_fixture_teardown_exception.py::test_succeed - test_asy... E ==================== 1 passed, 1 warning, 1 error in 0.07s =====================
E         ---- stderr
E         E         ----
E E assert {'errors': 1,...'warnings': 1} == {'errors': 1, 'passed': 1}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'errors': 1, 'passed': 1}
E         + {'errors': 1, 'passed': 1, 'warnings': 1}
E         ?                         +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_teardown_exception0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_teardown_exception0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_teardown_exception.py::test_succeed PASSED [100%] test_async_yield_fixture_teardown_exception.py::test_succeed ERROR [100%]

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

request = <SubRequest 'foo' for <Function test_succeed>>

    @pytest_twisted.async_yield_fixture()
    async def foo(request):
        yield 13
    >       raise UniqueLocalException("some message")
E test_async_yield_fixture_teardown_exception.UniqueLocalException: some message

test_async_yield_fixture_teardown_exception.py:12: UniqueLocalException
=============================== warnings summary ===============================
test_async_yield_fixture_teardown_exception.py::test_succeed
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ ERROR test_async_yield_fixture_teardown_exception.py::test_succeed - test_asy... ==================== 1 passed, 1 warning, 1 error in 0.07s ===================== ________________ test_async_yield_fixture_no_arguments[no call] ________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = ''

    @skip_if_no_async_generators()
    def test_async_yield_fixture_no_arguments(
            testdir,
            cmd_opts,
            empty_optional_call,
    ):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_yield_fixture{optional_call}
        async def scope(request):
            yield request.scope
            def test_is_function_scope(scope):
            assert scope == "function"
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:581: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_no_arguments.py::test_is_function_scope PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_no_arguments.py::test_is_function_scope
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_no_arguments.py::test_is_function_scope PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_no_arguments.py::test_is_function_scope
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.03s ========================= ______________ test_async_yield_fixture_no_arguments[empty call] _______________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
empty_optional_call = '()'

    @skip_if_no_async_generators()
    def test_async_yield_fixture_no_arguments(
            testdir,
            cmd_opts,
            empty_optional_call,
    ):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_yield_fixture{optional_call}
        async def scope(request):
            yield request.scope
            def test_is_function_scope(scope):
            assert scope == "function"
        """.format(optional_call=empty_optional_call)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:581: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments1
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_async_yield_fixture_no_arguments.py::test_is_function_scope PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_no_arguments.py::test_is_function_scope
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments1 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_no_arguments1
plugins: twisted-1.13.2
collecting ... collected 1 item

test_async_yield_fixture_no_arguments.py::test_is_function_scope PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_no_arguments.py::test_is_function_scope
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.03s ========================= ___________________ test_async_yield_fixture_function_scope ____________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_function_scope0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_fixture_function_scope(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            check_me = 0
            @pytest_twisted.async_yield_fixture(scope="function")
        async def foo():
            global check_me
                if check_me != 0:
raise Exception('check_me already modified before fixture run')
                check_me = 1
                yield 42
                if check_me != 2:
                raise Exception(
                    'check_me not updated properly: {}'.format(check_me),
                )
                check_me = 0
            def test_first(foo):
            global check_me
                assert check_me == 1
            assert foo == 42
                check_me = 2
            def test_second(foo):
            global check_me
                assert check_me == 1
            assert foo == 42
                check_me = 2
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:629: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_function_scope0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_yield_fixture_function_scope.py::test_first PASSED [ 50%] E test_async_yield_fixture_function_scope.py::test_second PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_function_scope.py::test_first
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_function_scope0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_function_scope0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_yield_fixture_function_scope.py::test_first PASSED [ 50%] test_async_yield_fixture_function_scope.py::test_second PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_function_scope.py::test_first
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= _____________________ test_async_simple_fixture_in_fixture _____________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_simple_fixture_in_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_await()
    def test_async_simple_fixture_in_fixture(testdir, cmd_opts):
        test_file = """
        import itertools
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_fixture(name='four')
        async def fixture_four():
            return 4
            @pytest_twisted.async_fixture(name='doublefour')
        async def fixture_doublefour(four):
            return 2 * four
            @pytest_twisted.ensureDeferred
        async def test_four(four):
            assert four == 4
            @pytest_twisted.ensureDeferred
        async def test_doublefour(doublefour):
            assert doublefour == 8
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:658: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_simple_fixture_in_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_simple_fixture_in_fixture.py::test_four PASSED [ 50%] E test_async_simple_fixture_in_fixture.py::test_doublefour PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_simple_fixture_in_fixture.py::test_four
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_simple_fixture_in_fixture0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_simple_fixture_in_fixture0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_simple_fixture_in_fixture.py::test_four PASSED [ 50%] test_async_simple_fixture_in_fixture.py::test_doublefour PASSED [100%]

=============================== warnings summary ===============================
test_async_simple_fixture_in_fixture.py::test_four
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= __________________ test_async_yield_simple_fixture_in_fixture __________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_simple_fixture_in_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_yield_simple_fixture_in_fixture(testdir, cmd_opts):
        test_file = """
        import itertools
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_yield_fixture(name='four')
        async def fixture_four():
            yield 4
            @pytest_twisted.async_yield_fixture(name='doublefour')
        async def fixture_doublefour(four):
            yield 2 * four
            @pytest_twisted.ensureDeferred
        async def test_four(four):
            assert four == 4
            @pytest_twisted.ensureDeferred
        async def test_doublefour(doublefour):
            assert doublefour == 8
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:687: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_simple_fixture_in_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_yield_simple_fixture_in_fixture.py::test_four PASSED [ 50%] E test_async_yield_simple_fixture_in_fixture.py::test_doublefour PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_simple_fixture_in_fixture.py::test_four
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_async_yield_simple_fixture_in_fixture0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_simple_fixture_in_fixture0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_yield_simple_fixture_in_fixture.py::test_four PASSED [ 50%] test_async_yield_simple_fixture_in_fixture.py::test_doublefour PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_simple_fixture_in_fixture.py::test_four
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= ________________ test_async_fixture_in_fixture[innerasync=True] ________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
innerasync = True

    @skip_if_no_async_await()
    @pytest.mark.parametrize('innerasync', [
        pytest.param(truth, id='innerasync={}'.format(truth))
        for truth in [True, False]
    ])
    def test_async_fixture_in_fixture(testdir, cmd_opts, innerasync):
        maybe_async = 'async ' if innerasync else ''
        maybe_await = 'await ' if innerasync else ''
        test_file = """
        import itertools
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_fixture(name='increment')
        async def fixture_increment():
            counts = itertools.count()
            {maybe_async}def increment():
                return next(counts)
                return increment
            @pytest_twisted.async_fixture(name='doubleincrement')
        async def fixture_doubleincrement(increment):
            {maybe_async}def doubleincrement():
                n = {maybe_await}increment()
                return n * 2
                return doubleincrement
            @pytest_twisted.ensureDeferred
        async def test_increment(increment):
            first = {maybe_await}increment()
            second = {maybe_await}increment()
            assert (first, second) == (0, 1)
            @pytest_twisted.ensureDeferred
        async def test_doubleincrement(doubleincrement):
            first = {maybe_await}doubleincrement()
            second = {maybe_await}doubleincrement()
            assert (first, second) == (0, 2)
        """.format(maybe_async=maybe_async, maybe_await=maybe_await)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:734: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_fixture_in_fixture.py::test_increment PASSED [ 50%] E test_async_fixture_in_fixture.py::test_doubleincrement PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_fixture_in_fixture.py::test_increment
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_fixture_in_fixture.py::test_increment PASSED [ 50%] test_async_fixture_in_fixture.py::test_doubleincrement PASSED [100%]

=============================== warnings summary ===============================
test_async_fixture_in_fixture.py::test_increment
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= _______________ test_async_fixture_in_fixture[innerasync=False] ________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
innerasync = False

    @skip_if_no_async_await()
    @pytest.mark.parametrize('innerasync', [
        pytest.param(truth, id='innerasync={}'.format(truth))
        for truth in [True, False]
    ])
    def test_async_fixture_in_fixture(testdir, cmd_opts, innerasync):
        maybe_async = 'async ' if innerasync else ''
        maybe_await = 'await ' if innerasync else ''
        test_file = """
        import itertools
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_fixture(name='increment')
        async def fixture_increment():
            counts = itertools.count()
            {maybe_async}def increment():
                return next(counts)
                return increment
            @pytest_twisted.async_fixture(name='doubleincrement')
        async def fixture_doubleincrement(increment):
            {maybe_async}def doubleincrement():
                n = {maybe_await}increment()
                return n * 2
                return doubleincrement
            @pytest_twisted.ensureDeferred
        async def test_increment(increment):
            first = {maybe_await}increment()
            second = {maybe_await}increment()
            assert (first, second) == (0, 1)
            @pytest_twisted.ensureDeferred
        async def test_doubleincrement(doubleincrement):
            first = {maybe_await}doubleincrement()
            second = {maybe_await}doubleincrement()
            assert (first, second) == (0, 2)
        """.format(maybe_async=maybe_async, maybe_await=maybe_await)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:734: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.62s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture1
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_fixture_in_fixture.py::test_increment PASSED [ 50%] E test_async_fixture_in_fixture.py::test_doubleincrement PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_fixture_in_fixture.py::test_increment
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture1
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_in_fixture1
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_fixture_in_fixture.py::test_increment PASSED [ 50%] test_async_fixture_in_fixture.py::test_doubleincrement PASSED [100%]

=============================== warnings summary ===============================
test_async_fixture_in_fixture.py::test_increment
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= _____________ test_async_yield_fixture_in_fixture[innerasync=True] _____________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
innerasync = True

    @skip_if_no_async_generators()
    @pytest.mark.parametrize('innerasync', [
        pytest.param(truth, id='innerasync={}'.format(truth))
        for truth in [True, False]
    ])
    def test_async_yield_fixture_in_fixture(testdir, cmd_opts, innerasync):
        maybe_async = 'async ' if innerasync else ''
        maybe_await = 'await ' if innerasync else ''
        test_file = """
        import itertools
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_yield_fixture(name='increment')
        async def fixture_increment():
            counts = itertools.count()
            {maybe_async}def increment():
                return next(counts)
                yield increment
            @pytest_twisted.async_yield_fixture(name='doubleincrement')
        async def fixture_doubleincrement(increment):
            {maybe_async}def doubleincrement():
                n = {maybe_await}increment()
                return n * 2
                yield doubleincrement
            @pytest_twisted.ensureDeferred
        async def test_increment(increment):
            first = {maybe_await}increment()
            second = {maybe_await}increment()
            assert (first, second) == (0, 1)
            @pytest_twisted.ensureDeferred
        async def test_doubleincrement(doubleincrement):
            first = {maybe_await}doubleincrement()
            second = {maybe_await}doubleincrement()
            assert (first, second) == (0, 2)
        """.format(maybe_async=maybe_async, maybe_await=maybe_await)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:782: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_yield_fixture_in_fixture.py::test_increment PASSED [ 50%] E test_async_yield_fixture_in_fixture.py::test_doubleincrement PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_in_fixture.py::test_increment
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_yield_fixture_in_fixture.py::test_increment PASSED [ 50%] test_async_yield_fixture_in_fixture.py::test_doubleincrement PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_in_fixture.py::test_increment
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= ____________ test_async_yield_fixture_in_fixture[innerasync=False] _____________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture1')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
innerasync = False

    @skip_if_no_async_generators()
    @pytest.mark.parametrize('innerasync', [
        pytest.param(truth, id='innerasync={}'.format(truth))
        for truth in [True, False]
    ])
    def test_async_yield_fixture_in_fixture(testdir, cmd_opts, innerasync):
        maybe_async = 'async ' if innerasync else ''
        maybe_await = 'await ' if innerasync else ''
        test_file = """
        import itertools
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            @pytest_twisted.async_yield_fixture(name='increment')
        async def fixture_increment():
            counts = itertools.count()
            {maybe_async}def increment():
                return next(counts)
                yield increment
            @pytest_twisted.async_yield_fixture(name='doubleincrement')
        async def fixture_doubleincrement(increment):
            {maybe_async}def doubleincrement():
                n = {maybe_await}increment()
                return n * 2
                yield doubleincrement
            @pytest_twisted.ensureDeferred
        async def test_increment(increment):
            first = {maybe_await}increment()
            second = {maybe_await}increment()
            assert (first, second) == (0, 1)
            @pytest_twisted.ensureDeferred
        async def test_doubleincrement(doubleincrement):
            first = {maybe_await}doubleincrement()
            second = {maybe_await}doubleincrement()
            assert (first, second) == (0, 2)
        """.format(maybe_async=maybe_async, maybe_await=maybe_await)
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:782: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture1
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_yield_fixture_in_fixture.py::test_increment PASSED [ 50%] E test_async_yield_fixture_in_fixture.py::test_doubleincrement PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_yield_fixture_in_fixture.py::test_increment
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture1
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_yield_fixture_in_fixture1
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_yield_fixture_in_fixture.py::test_increment PASSED [ 50%] test_async_yield_fixture_in_fixture.py::test_doubleincrement PASSED [100%]

=============================== warnings summary ===============================
test_async_yield_fixture_in_fixture.py::test_increment
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= _______________________ test_pytest_from_reactor_thread ________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_pytest_from_reactor_thread0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')
request = <FixtureRequest for <Function test_pytest_from_reactor_thread>>

    def test_pytest_from_reactor_thread(testdir, cmd_opts, request):
        skip_if_reactor_not(request, "default")
        test_file = """
        import pytest
        import pytest_twisted
        from twisted.internet import reactor, defer
            @pytest.fixture
        def fix():
            d = defer.Deferred()
            reactor.callLater(0.01, d.callback, 42)
            return pytest_twisted.blockon(d)
            def test_simple(fix):
            assert fix == 42
            @pytest_twisted.inlineCallbacks
        def test_fail():
            d = defer.Deferred()
            reactor.callLater(0.01, d.callback, 1)
            yield d
            assert False
        """
        testdir.makepyfile(test_file)
        runner_file = """
        import pytest
            from twisted.internet import reactor
        from twisted.internet.defer import inlineCallbacks
        from twisted.internet.threads import deferToThread
            codes = []
            @inlineCallbacks
        def main():
            try:
codes.append((yield deferToThread(pytest.main, ['-k simple']))) codes.append((yield deferToThread(pytest.main, ['-k fail'])))
            finally:
                reactor.stop()
            if __name__ == '__main__':
            reactor.callLater(0, main)
            reactor.run()
            codes == [0, 1] or exit(1)
        """
        testdir.makepyfile(runner=runner_file)
        # check test file is ok in standalone mode:
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1, "failed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:926: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=31 len(stderr.lines)=0 duration=0.67s>
outcomes = {'failed': 1, 'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_pytest_from_reactor_thread0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_pytest_from_reactor_thread.py::test_simple PASSED [ 50%] E test_pytest_from_reactor_thread.py::test_fail FAILED [100%] E E =================================== FAILURES =================================== E __________________________________ test_fail ___________________________________
E         E             @pytest_twisted.inlineCallbacks
E             def test_fail():
E                 d = defer.Deferred()
E                 reactor.callLater(0.01, d.callback, 1)
E                 yield d
E         >       assert False
E         E       assert False
E         E         test_pytest_from_reactor_thread.py:19: AssertionError
E =============================== warnings summary ===============================
E         test_pytest_from_reactor_thread.py::test_simple
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E =========================== short test summary info ============================ E FAILED test_pytest_from_reactor_thread.py::test_fail - assert False E ==================== 1 failed, 1 passed, 1 warning in 0.08s ====================
E         ---- stderr
E         E         ----
E E assert {'failed': 1,...'warnings': 1} == {'failed': 1, 'passed': 1}
E         Omitting 2 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'failed': 1, 'passed': 1}
E         + {'failed': 1, 'passed': 1, 'warnings': 1}
E         ?                         +++++++++++++++

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_pytest_from_reactor_thread0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_pytest_from_reactor_thread0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_pytest_from_reactor_thread.py::test_simple PASSED [ 50%] test_pytest_from_reactor_thread.py::test_fail FAILED [100%]

=================================== FAILURES =================================== __________________________________ test_fail ___________________________________

    @pytest_twisted.inlineCallbacks
    def test_fail():
        d = defer.Deferred()
        reactor.callLater(0.01, d.callback, 1)
        yield d
      assert False
E       assert False

test_pytest_from_reactor_thread.py:19: AssertionError
=============================== warnings summary ===============================
test_pytest_from_reactor_thread.py::test_simple
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED test_pytest_from_reactor_thread.py::test_fail - assert False
==================== 1 failed, 1 passed, 1 warning in 0.08s ==================== _______________________ test_async_fixture_module_scope ________________________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_async_fixture_module_scope0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_generators()
    def test_async_fixture_module_scope(testdir, cmd_opts):
        test_file = """
        from twisted.internet import reactor, defer
        import pytest
        import pytest_twisted
            check_me = 0
            @pytest_twisted.async_yield_fixture(scope="module")
        async def foo():
            global check_me
                if check_me != 0:
raise Exception('check_me already modified before fixture run')
                check_me = 1
                yield 42
                if check_me != 3:
                raise Exception(
                    'check_me not updated properly: {}'.format(check_me),
                )
                check_me = 0
            def test_first(foo):
            global check_me
                assert check_me == 1
            assert foo == 42
                check_me = 2
            def test_second(foo):
            global check_me
                assert check_me == 2
            assert foo == 42
                check_me = 3
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 2})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:1034: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=17 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 2}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_module_scope0
E         plugins: twisted-1.13.2
E         collecting ... collected 2 items
E E test_async_fixture_module_scope.py::test_first PASSED [ 50%] E test_async_fixture_module_scope.py::test_second PASSED [100%] E E =============================== warnings summary ===============================
E         test_async_fixture_module_scope.py::test_first
E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 2 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 2, 'warnings': 1} == {'passed': 2}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 2}
E         + {'passed': 2, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
     in: /tmp/pytest-of-debci/pytest-0/test_async_fixture_module_scope0
============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_async_fixture_module_scope0
plugins: twisted-1.13.2
collecting ... collected 2 items

test_async_fixture_module_scope.py::test_first PASSED [ 50%] test_async_fixture_module_scope.py::test_second PASSED [100%]

=============================== warnings summary ===============================
test_async_fixture_module_scope.py::test_first
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 2 passed, 1 warning in 0.03s ========================= ______________ test_inlinecallbacks_method_with_fixture_gets_self ______________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_self0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

def test_inlinecallbacks_method_with_fixture_gets_self(testdir, cmd_opts):
        test_file = """
        import pytest
        import pytest_twisted
        from twisted.internet import defer
            @pytest.fixture
        def foo():
            return 37
            class TestClass:
            @pytest_twisted.inlineCallbacks
            def test_self_isinstance(self, foo):
                d = defer.succeed(None)
                yield d
                assert isinstance(self, TestClass)
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:1056: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.56s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_self0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_inlinecallbacks_method_with_fixture_gets_self.py::TestClass::test_self_isinstance PASSED [100%] E E =============================== warnings summary =============================== E test_inlinecallbacks_method_with_fixture_gets_self.py::TestClass::test_self_isinstance E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_self0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_self0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_inlinecallbacks_method_with_fixture_gets_self.py::TestClass::test_self_isinstance PASSED [100%]

=============================== warnings summary ===============================
test_inlinecallbacks_method_with_fixture_gets_self.py::TestClass::test_self_isinstance
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= ____________ test_inlinecallbacks_method_with_fixture_gets_fixture _____________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

def test_inlinecallbacks_method_with_fixture_gets_fixture(testdir, cmd_opts):
        test_file = """
        import pytest
        import pytest_twisted
        from twisted.internet import defer
            @pytest.fixture
        def foo():
            return 37
            class TestClass:
            @pytest_twisted.inlineCallbacks
            def test_self_isinstance(self, foo):
                d = defer.succeed(None)
                yield d
                assert foo == 37
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:1078: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_inlinecallbacks_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance PASSED [100%] E E =============================== warnings summary =============================== E test_inlinecallbacks_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_fixture0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_inlinecallbacks_method_with_fixture_gets_fixture0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_inlinecallbacks_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance PASSED [100%]

=============================== warnings summary ===============================
test_inlinecallbacks_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= ______________ test_ensuredeferred_method_with_fixture_gets_self _______________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_self0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_await()
def test_ensuredeferred_method_with_fixture_gets_self(testdir, cmd_opts):
        test_file = """
        import pytest
        import pytest_twisted
            @pytest.fixture
        def foo():
            return 37
            class TestClass:
            @pytest_twisted.ensureDeferred
            async def test_self_isinstance(self, foo):
                assert isinstance(self, TestClass)
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:1098: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_self0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_ensuredeferred_method_with_fixture_gets_self.py::TestClass::test_self_isinstance PASSED [100%] E E =============================== warnings summary =============================== E test_ensuredeferred_method_with_fixture_gets_self.py::TestClass::test_self_isinstance E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_self0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_self0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_ensuredeferred_method_with_fixture_gets_self.py::TestClass::test_self_isinstance PASSED [100%]

=============================== warnings summary ===============================
test_ensuredeferred_method_with_fixture_gets_self.py::TestClass::test_self_isinstance
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.03s ========================= _____________ test_ensuredeferred_method_with_fixture_gets_fixture _____________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_fixture0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

    @skip_if_no_async_await()
def test_ensuredeferred_method_with_fixture_gets_fixture(testdir, cmd_opts):
        test_file = """
        import pytest
        import pytest_twisted
            @pytest.fixture
        def foo():
            return 37
            class TestClass:
            @pytest_twisted.ensureDeferred
            async def test_self_isinstance(self, foo):
                assert foo == 37
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:1118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.57s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_fixture0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_ensuredeferred_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance PASSED [100%] E E =============================== warnings summary =============================== E test_ensuredeferred_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.03s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_fixture0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_ensuredeferred_method_with_fixture_gets_fixture0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_ensuredeferred_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance PASSED [100%]

=============================== warnings summary ===============================
test_ensuredeferred_method_with_fixture_gets_fixture.py::TestClass::test_self_isinstance
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.03s ========================= ___________ test_import_pytest_twisted_in_conftest_py_not_a_problem ____________

testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_import_pytest_twisted_in_conftest_py_not_a_problem0')> cmd_opts = ('/usr/bin/python3.10', '-m', 'pytest', '-v', '--reactor=default')

def test_import_pytest_twisted_in_conftest_py_not_a_problem(testdir, cmd_opts):
        conftest_file = """
        import pytest
        import pytest_twisted
                @pytest.hookimpl(tryfirst=True)
        def pytest_configure(config):
            pytest_twisted._use_asyncio_selector_if_required(config=config)
        """
        testdir.makeconftest(conftest_file)
        test_file = """
        import pytest_twisted
            def test_succeed():
            pass
        """
        testdir.makepyfile(test_file)
        rr = testdir.run(*cmd_opts, timeout=timeout)
      assert_outcomes(rr, {"passed": 1})

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:1140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ run_result = <RunResult ret=ExitCode.OK len(stdout.lines)=16 len(stderr.lines)=0 duration=0.52s>
outcomes = {'passed': 1}

    def assert_outcomes(run_result, outcomes):
        formatted_output = format_run_result_output_for_assert(run_result)
            try:
            result_outcomes = run_result.parseoutcomes()
        except ValueError:
            assert False, formatted_output
            normalized_result_outcomes = {
            force_plural(name): outcome
            for name, outcome in result_outcomes.items()
            if name != "seconds"
        }
    >       assert normalized_result_outcomes == outcomes, formatted_output
E       AssertionError: E         ---- stdout
E ============================= test session starts ============================== E platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
E         cachedir: .pytest_cache
E rootdir: /tmp/pytest-of-debci/pytest-0/test_import_pytest_twisted_in_conftest_py_not_a_problem0
E         plugins: twisted-1.13.2
E         collecting ... collected 1 item
E E test_import_pytest_twisted_in_conftest_py_not_a_problem.py::test_succeed PASSED [100%] E E =============================== warnings summary =============================== E test_import_pytest_twisted_in_conftest_py_not_a_problem.py::test_succeed E /usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
E             return threadingmodule.currentThread().ident
E         E         -- Docs: https://docs.pytest.org/en/stable/warnings.html
E ========================= 1 passed, 1 warning in 0.01s =========================
E         ---- stderr
E         E         ----
E         E       assert {'passed': 1, 'warnings': 1} == {'passed': 1}
E         Omitting 1 identical items, use -vv to show
E         Left contains 1 more item:
E         {'warnings': 1}
E         Full diff:
E         - {'passed': 1}
E         + {'passed': 1, 'warnings': 1}

/tmp/autopkgtest-lxc.vvgfvxi1/downtmp/autopkgtest_tmp/testing/test_basic.py:38: AssertionError ----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3.10 -m pytest -v --reactor=default
in: /tmp/pytest-of-debci/pytest-0/test_import_pytest_twisted_in_conftest_py_not_a_problem0 ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-debci/pytest-0/test_import_pytest_twisted_in_conftest_py_not_a_problem0
plugins: twisted-1.13.2
collecting ... collected 1 item

test_import_pytest_twisted_in_conftest_py_not_a_problem.py::test_succeed PASSED [100%]

=============================== warnings summary ===============================
test_import_pytest_twisted_in_conftest_py_not_a_problem.py::test_succeed
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s ========================= =============================== warnings summary ===============================
testing/test_basic.py::test_inline_callbacks_in_pytest
/usr/lib/python3/dist-packages/twisted/python/threadable.py:107: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    return threadingmodule.currentThread().ident

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ FAILED testing/test_basic.py::test_inline_callbacks_in_pytest_deprecation[pytest.inlineCallbacks-True] FAILED testing/test_basic.py::test_inline_callbacks_in_pytest_deprecation[pytest_twisted.inlineCallbacks-False] FAILED testing/test_basic.py::test_blockon_in_pytest_deprecation[pytest.blockon-True] FAILED testing/test_basic.py::test_blockon_in_pytest_deprecation[pytest_twisted.blockon-False] FAILED testing/test_basic.py::test_fail_later - AssertionError: FAILED testing/test_basic.py::test_succeed_later - AssertionError: FAILED testing/test_basic.py::test_non_deferred - AssertionError: FAILED testing/test_basic.py::test_exception - AssertionError: FAILED testing/test_basic.py::test_inlineCallbacks[no call] - AssertionError: FAILED testing/test_basic.py::test_inlineCallbacks[empty call] - AssertionErr... FAILED testing/test_basic.py::test_async_await[no call] - AssertionError: FAILED testing/test_basic.py::test_async_await[empty call] - AssertionError: FAILED testing/test_basic.py::test_twisted_greenlet - AssertionError: FAILED testing/test_basic.py::test_blockon_in_fixture - AssertionError: FAILED testing/test_basic.py::test_blockon_in_fixture_async - AssertionError: FAILED testing/test_basic.py::test_async_fixture - AssertionError: FAILED testing/test_basic.py::test_async_fixture_no_arguments[no call] - Asse... FAILED testing/test_basic.py::test_async_fixture_no_arguments[empty call] - A... FAILED testing/test_basic.py::test_async_yield_fixture_ordered_teardown - Ass... FAILED testing/test_basic.py::test_async_yield_fixture_can_await - AssertionE... FAILED testing/test_basic.py::test_async_yield_fixture_failed_test - Assertio... FAILED testing/test_basic.py::test_async_yield_fixture_test_exception - Asser... FAILED testing/test_basic.py::test_async_yield_fixture_yields_twice - Asserti... FAILED testing/test_basic.py::test_async_yield_fixture_teardown_exception - A...
FAILED testing/test_basic.py::test_async_yield_fixture_no_arguments[no call]
FAILED testing/test_basic.py::test_async_yield_fixture_no_arguments[empty call] FAILED testing/test_basic.py::test_async_yield_fixture_function_scope - Asser... FAILED testing/test_basic.py::test_async_simple_fixture_in_fixture - Assertio... FAILED testing/test_basic.py::test_async_yield_simple_fixture_in_fixture - As...
FAILED testing/test_basic.py::test_async_fixture_in_fixture[innerasync=True]
FAILED testing/test_basic.py::test_async_fixture_in_fixture[innerasync=False] FAILED testing/test_basic.py::test_async_yield_fixture_in_fixture[innerasync=True] FAILED testing/test_basic.py::test_async_yield_fixture_in_fixture[innerasync=False] FAILED testing/test_basic.py::test_pytest_from_reactor_thread - AssertionError: FAILED testing/test_basic.py::test_async_fixture_module_scope - AssertionError: FAILED testing/test_basic.py::test_inlinecallbacks_method_with_fixture_gets_self FAILED testing/test_basic.py::test_inlinecallbacks_method_with_fixture_gets_fixture FAILED testing/test_basic.py::test_ensuredeferred_method_with_fixture_gets_self FAILED testing/test_basic.py::test_ensuredeferred_method_with_fixture_gets_fixture FAILED testing/test_basic.py::test_import_pytest_twisted_in_conftest_py_not_a_problem ============= 40 failed, 4 passed, 4 skipped, 1 warning in 25.35s ==============
autopkgtest [12:15:00]: test unittests

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: