--- Begin Message ---
Source: pytest
Version: 6.2.5-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- --system=custom
> I: pybuild pybuild:286: mkdir -p
> /<<PKGBUILDDIR>>/debian/tmp/test-working-directory
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/debian/tmp/test-working-directory &&
> python3.10 -m pytest --lsof -rfsxX
> --ignore=/<<PKGBUILDDIR>>/testing/test_entry_points.py
> --ignore=/<<PKGBUILDDIR>>/testing/test_terminal.py -k 'not
> test_code_highlight' /<<PKGBUILDDIR>>/testing
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> plugins: hypothesis-5.43.3
> collected 2904 items / 4 deselected / 2900 selected
>
> ../../../testing/acceptance_test.py ...... [
> 0%]
> ../../../testing/deprecated_test.py ............. [
> 0%]
> ../../../testing/test_argcomplete.py .. [
> 0%]
> ../../../testing/test_assertion.py ..................................... [
> 2%]
> ......................... [
> 2%]
> ../../../testing/test_assertrewrite.py ................................. [
> 4%]
> ...... [
> 4%]
> ../../../testing/test_capture.py ....................................... [
> 5%]
> .................s....s.. [
> 6%]
> ../../../testing/test_collection.py . [
> 6%]
> ../../../testing/test_compat.py ........... [
> 6%]
> ../../../testing/test_config.py ........................................ [
> 8%]
> ........ [
> 8%]
> ../../../testing/test_conftest.py ........... [
> 8%]
> ../../../testing/test_debugging.py .. [
> 8%]
> ../../../testing/test_doctest.py ........... [
> 9%]
> ../../../testing/test_faulthandler.py ... [
> 9%]
> ../../../testing/test_findpaths.py ............. [
> 9%]
> ../../../testing/test_junitxml.py .... [
> 10%]
> ../../../testing/test_main.py ..... [
> 10%]
> ../../../testing/test_mark.py ................ [
> 10%]
> ../../../testing/test_mark_expression.py ............................... [
> 11%]
> .................................................... [
> 13%]
> ../../../testing/test_monkeypatch.py ............................... [
> 14%]
> ../../../testing/test_nodes.py ........... [
> 15%]
> ../../../testing/test_nose.py .. [
> 15%]
> ../../../testing/test_parseopt.py ............................ [
> 16%]
> ../../../testing/test_pastebin.py .... [
> 16%]
> ../../../testing/test_pathlib.py ....................................... [
> 17%]
> ........................s [
> 18%]
> ../../../testing/test_pluginmanager.py ......... [
> 18%]
> ../../../testing/test_pytester.py ..................... [
> 19%]
> ../../../testing/test_recwarn.py ....................................... [
> 20%]
> [
> 20%]
> ../../../testing/test_runner.py .............. [
> 21%]
> ../../../testing/test_skipping.py . [
> 21%]
> ../../../testing/test_store.py . [
> 21%]
> ../../../testing/test_tmpdir.py ...s.............. [
> 21%]
> ../../../testing/test_warning_types.py ........... [
> 22%]
> ../../../testing/test_warnings.py . [
> 22%]
> ../../../testing/code/test_code.py ................. [
> 22%]
> ../../../testing/code/test_excinfo.py ...............s.................. [
> 24%]
> ........................................................................ [
> 26%]
> .................... [
> 27%]
> ../../../testing/code/test_source.py ................................... [
> 28%]
> ................... [
> 29%]
> ../../../testing/freeze/tests/test_trivial.py .. [
> 29%]
> ../../../testing/io/test_saferepr.py ........... [
> 29%]
> ../../../testing/io/test_terminalwriter.py ............................. [
> 30%]
> ............ [
> 31%]
> ../../../testing/io/test_wcwidth.py ................. [
> 31%]
> ../../../testing/logging/test_fixture.py ........ [
> 31%]
> ../../../testing/logging/test_formatter.py ... [
> 32%]
> ../../../testing/logging/test_reporting.py .. [
> 32%]
> ../../../testing/python/approx.py ..sssss............................... [
> 33%]
> ..ssssss................ss. [
> 34%]
> ../../../testing/python/collect.py .. [
> 34%]
> ../../../testing/python/fixtures.py ................x..... [
> 35%]
> ../../../testing/python/integration.py .... [
> 35%]
> ../../../testing/python/metafunc.py .................................... [
> 36%]
> ..... [
> 36%]
> ../../../testing/python/raises.py ..................... [
> 37%]
> ../../../testing/freeze/tests/test_doctest.txt . [
> 37%]
> ../../../testing/acceptance_test.py .................................... [
> 38%]
> ...............x................... [
> 39%]
> ../../../testing/deprecated_test.py ....... [
> 40%]
> ../../../testing/test_assertion.py ................................ [
> 41%]
> ../../../testing/test_assertrewrite.py ................................. [
> 42%]
> ....... [
> 42%]
> ../../../testing/test_cacheprovider.py ................................. [
> 43%]
> ................. [
> 44%]
> ../../../testing/test_capture.py ......x........................s....... [
> 45%]
> .... [
> 45%]
> ../../../testing/test_collection.py ...........................x........ [
> 47%]
> ...........................s............... [
> 48%]
> ../../../testing/test_compat.py .. [
> 48%]
> ../../../testing/test_config.py ...........x............................ [
> 50%]
> ........................................................................ [
> 52%]
> ..... [
> 52%]
> ../../../testing/test_conftest.py ............s......................... [
> 53%]
> .... [
> 54%]
> ../../../testing/test_debugging.py ............ [
> 54%]
> ../../../testing/test_doctest.py ....................................... [
> 55%]
> .....................x.................................................. [
> 58%]
> ....... [
> 58%]
> ../../../testing/test_error_diffs.py ............ [
> 59%]
> ../../../testing/test_faulthandler.py .. [
> 59%]
> ../../../testing/test_helpconfig.py ........ [
> 59%]
> ../../../testing/test_junitxml.py ...................................... [
> 60%]
> ...........................................................s...s........ [
> 63%]
> .............. [
> 63%]
> ../../../testing/test_link_resolve.py . [
> 63%]
> ../../../testing/test_main.py ............ [
> 64%]
> ../../../testing/test_mark.py .......................................... [
> 65%]
> ..................x............... [
> 66%]
> ../../../testing/test_monkeypatch.py .... [
> 66%]
> ../../../testing/test_nodes.py .... [
> 66%]
> ../../../testing/test_nose.py .................. [
> 67%]
> ../../../testing/test_parseopt.py . [
> 67%]
> ../../../testing/test_pastebin.py ... [
> 67%]
> ../../../testing/test_pluginmanager.py ................ [
> 68%]
> ../../../testing/test_pytester.py x...................... [
> 69%]
> ../../../testing/test_recwarn.py .. [
> 69%]
> ../../../testing/test_reports.py ................. [
> 69%]
> ../../../testing/test_runner.py ......................x................. [
> 71%]
> .... [
> 71%]
> ../../../testing/test_runner_xunit.py ............. [
> 71%]
> ../../../testing/test_session.py ....................... [
> 72%]
> ../../../testing/test_setuponly.py .......................... [
> 73%]
> ../../../testing/test_setupplan.py ... [
> 73%]
> ../../../testing/test_skipping.py ...................................... [
> 74%]
> ...............................F.............. [
> 76%]
> ../../../testing/test_stepwise.py .......... [
> 76%]
> ../../../testing/test_threadexception.py .... [
> 76%]
> ../../../testing/test_tmpdir.py ................. [
> 77%]
> ../../../testing/test_unittest.py .......................F.............. [
> 78%]
> .....................s...... [
> 79%]
> ../../../testing/test_unraisableexception.py .... [
> 79%]
> ../../../testing/test_warning_types.py . [
> 79%]
> ../../../testing/test_warnings.py ...................sss........ [
> 80%]
> ../../../testing/code/test_excinfo.py ... [
> 81%]
> ../../../testing/examples/test_issue519.py . [
> 81%]
> ../../../testing/logging/test_fixture.py ....... [
> 81%]
> ../../../testing/logging/test_reporting.py ............................. [
> 82%]
> ......... [
> 82%]
> ../../../testing/python/approx.py . [
> 82%]
> ../../../testing/python/collect.py ..................................... [
> 83%]
> ..................................... [
> 85%]
> ../../../testing/python/fixtures.py .................................... [
> 86%]
> ........................................................................ [
> 88%]
> ................................................s.. [
> 90%]
> ../../../testing/python/integration.py ................ [
> 91%]
> ../../../testing/python/metafunc.py .................................... [
> 92%]
> ........................ [
> 93%]
> ../../../testing/python/raises.py ... [
> 93%]
> ../../../testing/python/show_fixtures_per_test.py ...... [
> 93%]
> ../../../testing/acceptance_test.py .... [
> 93%]
> ../../../testing/test_assertion.py ............ [
> 94%]
> ../../../testing/test_assertrewrite.py ......... [
> 94%]
> ../../../testing/test_capture.py ........................ [
> 95%]
> ../../../testing/test_collection.py . [
> 95%]
> ../../../testing/test_compat.py . [
> 95%]
> ../../../testing/test_config.py .. [
> 95%]
> ../../../testing/test_debugging.py sssssssssss.ssssssssssssssss.sss....s [
> 96%]
> sss.sss [
> 96%]
> ../../../testing/test_faulthandler.py ...s. [
> 97%]
> ../../../testing/test_helpconfig.py .. [
> 97%]
> ../../../testing/test_meta.py .......................................... [
> 98%]
> .................. [
> 99%]
> ../../../testing/test_pytester.py .....s [
> 99%]
> ../../../testing/test_reports.py . [
> 99%]
> ../../../testing/test_unittest.py s. [
> 99%]
> ../../../testing/test_warnings.py ......... [
> 99%]
> ../../../testing/python/collect.py . [
> 99%]
> ../../../testing/python/fixtures.py ..
> [100%]
>
> =================================== FAILURES
> ===================================
> ____________________ test_errors_in_xfail_skip_expressions
> _____________________
>
> pytester = <Pytester
> PosixPath('/tmp/pytest-of-user42/pytest-9/test_errors_in_xfail_skip_expressions0')>
>
> def test_errors_in_xfail_skip_expressions(pytester: Pytester) -> None:
> pytester.makepyfile(
> """
> import pytest
> @pytest.mark.skipif("asd")
> def test_nameerror():
> pass
> @pytest.mark.xfail("syntax error")
> def test_syntax():
> pass
>
> def test_func():
> pass
> """
> )
> result = pytester.runpytest()
> markline = " ^"
> pypy_version_info = getattr(sys, "pypy_version_info", None)
> if pypy_version_info is not None and pypy_version_info < (6,):
> markline = markline[5:]
> elif sys.version_info[:2] >= (3, 10):
> markline = markline[11:]
> elif sys.version_info >= (3, 8) or hasattr(sys, "pypy_version_info"):
> markline = markline[4:]
>
> if sys.version_info[:2] >= (3, 10):
> expected = [
> "*ERROR*test_nameerror*",
> "*asd*",
> "",
> "During handling of the above exception, another exception
> occurred:",
> ]
> else:
> expected = [
> "*ERROR*test_nameerror*",
> ]
>
> expected += [
> "*evaluating*skipif*condition*",
> "*asd*",
> "*ERROR*test_syntax*",
> "*evaluating*xfail*condition*",
> " syntax error",
> markline,
> "SyntaxError: invalid syntax",
> "*1 pass*2 errors*",
> ]
> > result.stdout.fnmatch_lines(expected)
> E Failed: nomatch: '*ERROR*test_nameerror*'
> E and: '============================= test session starts
> =============================='
> E and: 'platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0,
> pluggy-0.13.0'
> E and: 'rootdir:
> /tmp/pytest-of-user42/pytest-9/test_errors_in_xfail_skip_expressions0'
> E and: 'collected 3 items'
> E and: ''
> E and: 'test_errors_in_xfail_skip_expressions.py EE.
> [100%]'
> E and: ''
> E and: '==================================== ERRORS
> ===================================='
> E fnmatch: '*ERROR*test_nameerror*'
> E with: '_______________________ ERROR at setup of test_nameerror
> _______________________'
> E fnmatch: '*asd*'
> E with: "name 'asd' is not defined"
> E exact match: ''
> E exact match: 'During handling of the above exception, another
> exception occurred:'
> E fnmatch: '*evaluating*skipif*condition*'
> E with: "Error evaluating 'skipif' condition"
> E fnmatch: '*asd*'
> E with: ' asd'
> E nomatch: '*ERROR*test_syntax*'
> E and: "NameError: name 'asd' is not defined"
> E fnmatch: '*ERROR*test_syntax*'
> E with: '________________________ ERROR at setup of test_syntax
> _________________________'
> E nomatch: '*evaluating*xfail*condition*'
> E and: 'invalid syntax (<xfail condition>, line 1)'
> E and: ''
> E and: 'During handling of the above exception, another exception
> occurred:'
> E fnmatch: '*evaluating*xfail*condition*'
> E with: "Error evaluating 'xfail' condition"
> E exact match: ' syntax error'
> E nomatch: ' ^'
> E and: ' ^'
> E and: 'SyntaxError: invalid syntax'
> E and: '=========================== short test summary info
> ============================'
> E and: 'ERROR
> test_errors_in_xfail_skip_expressions.py::test_nameerror'
> E and: 'ERROR test_errors_in_xfail_skip_expressions.py::test_syntax'
> E and: '========================= 1 passed, 2 errors in 0.01s
> =========================='
> E remains unmatched: ' ^'
>
> /<<PKGBUILDDIR>>/testing/test_skipping.py:1156: Failed
> ----------------------------- Captured stdout call
> -----------------------------
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_errors_in_xfail_skip_expressions0
> collected 3 items
>
> test_errors_in_xfail_skip_expressions.py EE.
> [100%]
>
> ==================================== ERRORS
> ====================================
> _______________________ ERROR at setup of test_nameerror
> _______________________
> name 'asd' is not defined
>
> During handling of the above exception, another exception occurred:
> Error evaluating 'skipif' condition
> asd
> NameError: name 'asd' is not defined
> ________________________ ERROR at setup of test_syntax
> _________________________
> invalid syntax (<xfail condition>, line 1)
>
> During handling of the above exception, another exception occurred:
> Error evaluating 'xfail' condition
> syntax error
> ^
> SyntaxError: invalid syntax
> =========================== short test summary info
> ============================
> ERROR test_errors_in_xfail_skip_expressions.py::test_nameerror
> ERROR test_errors_in_xfail_skip_expressions.py::test_syntax
> ========================= 1 passed, 2 errors in 0.01s
> ==========================
> ______________________ TestTrialUnittest.test_trial_error
> ______________________
>
> self = <test_unittest.TestTrialUnittest object at 0x7f904467df90>
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_trial_error0')>
>
> def test_trial_error(self, testdir):
> testdir.makepyfile(
> """
> from twisted.trial.unittest import TestCase
> from twisted.internet.defer import Deferred
> from twisted.internet import reactor
>
> class TC(TestCase):
> def test_one(self):
> crash
>
> def test_two(self):
> def f(_):
> crash
>
> d = Deferred()
> d.addCallback(f)
> reactor.callLater(0.3, d.callback, None)
> return d
>
> def test_three(self):
> def f():
> pass # will never get called
> reactor.callLater(0.3, f)
> # will crash at teardown
>
> def test_four(self):
> def f(_):
> reactor.callLater(0.3, f)
> crash
>
> d = Deferred()
> d.addCallback(f)
> reactor.callLater(0.3, d.callback, None)
> return d
> # will crash both at test time and at teardown
> """
> )
> result = testdir.runpytest("-vv", "-oconsole_output_style=classic")
> > result.stdout.fnmatch_lines(
> [
> "test_trial_error.py::TC::test_four FAILED",
> "test_trial_error.py::TC::test_four ERROR",
> "test_trial_error.py::TC::test_one FAILED",
> "test_trial_error.py::TC::test_three FAILED",
> "test_trial_error.py::TC::test_two FAILED",
> "*ERRORS*",
> "*_ ERROR at teardown of TC.test_four _*",
> "*DelayedCalls*",
> "*= FAILURES =*",
> "*_ TC.test_four _*",
> "*NameError*crash*",
> "*_ TC.test_one _*",
> "*NameError*crash*",
> "*_ TC.test_three _*",
> "*DelayedCalls*",
> "*_ TC.test_two _*",
> "*NameError*crash*",
> "*= 4 failed, 1 error in *",
> ]
> )
> E Failed: nomatch: 'test_trial_error.py::TC::test_four FAILED'
> E and: '============================= test session starts
> =============================='
> E and: 'platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0,
> pluggy-0.13.0 -- /usr/bin/python3.10'
> E and: 'cachedir: .pytest_cache'
> E and: 'rootdir: /tmp/pytest-of-user42/pytest-9/test_trial_error0'
> E and: 'collecting ... collected 4 items'
> E and: ''
> E exact match: 'test_trial_error.py::TC::test_four FAILED'
> E exact match: 'test_trial_error.py::TC::test_four ERROR'
> E exact match: 'test_trial_error.py::TC::test_one FAILED'
> E exact match: 'test_trial_error.py::TC::test_three FAILED'
> E exact match: 'test_trial_error.py::TC::test_two FAILED'
> E nomatch: '*ERRORS*'
> E and: ''
> E fnmatch: '*ERRORS*'
> E with: '==================================== ERRORS
> ===================================='
> E fnmatch: '*_ ERROR at teardown of TC.test_four _*'
> E with: '______________________ ERROR at teardown of TC.test_four
> _______________________'
> E nomatch: '*DelayedCalls*'
> E and: "'NoneType' object is not iterable"
> E and: ''
> E and: 'During handling of the above exception, another exception
> occurred:'
> E and: 'NOTE: Incompatible Exception Representation, displaying
> natively:'
> E and: ''
> E and: 'twisted.trial.util.DirtyReactorAggregateError: Reactor was
> unclean.'
> E fnmatch: '*DelayedCalls*'
> E with: 'DelayedCalls: (set twisted.internet.base.DelayedCall.debug
> = True to debug)'
> E nomatch: '*= FAILURES =*'
> E and: '<DelayedCall 0x7f904824d270 [0.29946398735046387s] called=0
> cancelled=0 TC.test_four.<locals>.f()>'
> E fnmatch: '*= FAILURES =*'
> E with: '=================================== FAILURES
> ==================================='
> E fnmatch: '*_ TC.test_four _*'
> E with: '_________________________________ TC.test_four
> _________________________________'
> E nomatch: '*NameError*crash*'
> E and: ''
> E and: '_ = None'
> E and: ''
> E and: ' def f(_):'
> E and: ' reactor.callLater(0.3, f)'
> E and: '> crash'
> E fnmatch: '*NameError*crash*'
> E with: "E NameError: name 'crash' is not defined"
> E nomatch: '*_ TC.test_one _*'
> E and: ''
> E and: 'test_trial_error.py:27: NameError'
> E fnmatch: '*_ TC.test_one _*'
> E with: '_________________________________ TC.test_one
> __________________________________'
> E nomatch: '*NameError*crash*'
> E and: ''
> E and: 'self = <test_trial_error.TC testMethod=test_one>'
> E and: ''
> E and: ' def test_one(self):'
> E and: '> crash'
> E fnmatch: '*NameError*crash*'
> E with: "E NameError: name 'crash' is not defined"
> E nomatch: '*_ TC.test_three _*'
> E and: ''
> E and: 'test_trial_error.py:7: NameError'
> E fnmatch: '*_ TC.test_three _*'
> E with: '________________________________ TC.test_three
> _________________________________'
> E nomatch: '*DelayedCalls*'
> E and: "'NoneType' object is not iterable"
> E and: ''
> E and: 'During handling of the above exception, another exception
> occurred:'
> E and: 'NOTE: Incompatible Exception Representation, displaying
> natively:'
> E and: ''
> E and: 'twisted.trial.util.DirtyReactorAggregateError: Reactor was
> unclean.'
> E fnmatch: '*DelayedCalls*'
> E with: 'DelayedCalls: (set twisted.internet.base.DelayedCall.debug
> = True to debug)'
> E nomatch: '*_ TC.test_two _*'
> E and: '<DelayedCall 0x7f9047c50af0 [0.29987573623657227s] called=0
> cancelled=0 TC.test_three.<locals>.f()>'
> E fnmatch: '*_ TC.test_two _*'
> E with: '_________________________________ TC.test_two
> __________________________________'
> E nomatch: '*NameError*crash*'
> E and: ''
> E and: '_ = None'
> E and: ''
> E and: ' def f(_):'
> E and: '> crash'
> E fnmatch: '*NameError*crash*'
> E with: "E NameError: name 'crash' is not defined"
> E nomatch: '*= 4 failed, 1 error in *'
> E and: ''
> E and: 'test_trial_error.py:11: NameError'
> E and: '=============================== warnings summary
> ==============================='
> E and: 'test_trial_error.py::TC::test_four'
> E and: 'test_trial_error.py::TC::test_two'
> E and: '
> /usr/lib/python3/dist-packages/twisted/python/threadable.py:107:
> DeprecationWarning: currentThread() is deprecated, use current_thread()
> instead'
> E and: ' return threadingmodule.currentThread().ident'
> E and: ''
> E and: '-- Docs: https://docs.pytest.org/en/stable/warnings.html'
> E and: '=========================== short test summary info
> ============================'
> E and: "FAILED test_trial_error.py::TC::test_four - NameError: name
> 'crash' is not de..."
> E and: "FAILED test_trial_error.py::TC::test_one - NameError: name
> 'crash' is not def..."
> E and: 'FAILED test_trial_error.py::TC::test_three'
> E and: "FAILED test_trial_error.py::TC::test_two - NameError: name
> 'crash' is not def..."
> E and: 'ERROR test_trial_error.py::TC::test_four'
> E and: '==================== 4 failed, 2 warnings, 1 error in 0.62s
> ===================='
> E remains unmatched: '*= 4 failed, 1 error in *'
>
> /<<PKGBUILDDIR>>/testing/test_unittest.py:537: Failed
> ----------------------------- Captured stdout call
> -----------------------------
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 --
> /usr/bin/python3.10
> cachedir: .pytest_cache
> rootdir: /tmp/pytest-of-user42/pytest-9/test_trial_error0
> collecting ... collected 4 items
>
> test_trial_error.py::TC::test_four FAILED
> test_trial_error.py::TC::test_four ERROR
> test_trial_error.py::TC::test_one FAILED
> test_trial_error.py::TC::test_three FAILED
> test_trial_error.py::TC::test_two FAILED
>
> ==================================== ERRORS
> ====================================
> ______________________ ERROR at teardown of TC.test_four
> _______________________
> 'NoneType' object is not iterable
>
> During handling of the above exception, another exception occurred:
> NOTE: Incompatible Exception Representation, displaying natively:
>
> twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean.
> DelayedCalls: (set twisted.internet.base.DelayedCall.debug = True to debug)
> <DelayedCall 0x7f904824d270 [0.29946398735046387s] called=0 cancelled=0
> TC.test_four.<locals>.f()>
> =================================== FAILURES
> ===================================
> _________________________________ TC.test_four
> _________________________________
>
> _ = None
>
> def f(_):
> reactor.callLater(0.3, f)
> > crash
> E NameError: name 'crash' is not defined
>
> test_trial_error.py:27: NameError
> _________________________________ TC.test_one
> __________________________________
>
> self = <test_trial_error.TC testMethod=test_one>
>
> def test_one(self):
> > crash
> E NameError: name 'crash' is not defined
>
> test_trial_error.py:7: NameError
> ________________________________ TC.test_three
> _________________________________
> 'NoneType' object is not iterable
>
> During handling of the above exception, another exception occurred:
> NOTE: Incompatible Exception Representation, displaying natively:
>
> twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean.
> DelayedCalls: (set twisted.internet.base.DelayedCall.debug = True to debug)
> <DelayedCall 0x7f9047c50af0 [0.29987573623657227s] called=0 cancelled=0
> TC.test_three.<locals>.f()>
> _________________________________ TC.test_two
> __________________________________
>
> _ = None
>
> def f(_):
> > crash
> E NameError: name 'crash' is not defined
>
> test_trial_error.py:11: NameError
> =============================== warnings summary
> ===============================
> test_trial_error.py::TC::test_four
> test_trial_error.py::TC::test_two
> /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_trial_error.py::TC::test_four - NameError: name 'crash' is not
> de...
> FAILED test_trial_error.py::TC::test_one - NameError: name 'crash' is not
> def...
> FAILED test_trial_error.py::TC::test_three
> FAILED test_trial_error.py::TC::test_two - NameError: name 'crash' is not
> def...
> ERROR test_trial_error.py::TC::test_four
> ==================== 4 failed, 2 warnings, 1 error in 0.62s
> ====================
> =========================== short test summary info
> ============================
> FAILED
> ../../../testing/test_skipping.py::test_errors_in_xfail_skip_expressions
> FAILED ../../../testing/test_unittest.py::TestTrialUnittest::test_trial_error
> SKIPPED [2] ../../../testing/test_capture.py:948: could not run 'lsof'
> (FileNotFoundError(2, 'No such file or directory'))
> SKIPPED [1] ../../../testing/test_capture.py:1433: only on windows
> SKIPPED [1] ../../../testing/test_pathlib.py:420: Windows only
> SKIPPED [1] ../../../testing/test_tmpdir.py:238: win only
> SKIPPED [1] ../../../testing/code/test_excinfo.py:259: could not import
> 'decorator': No module named 'decorator'
> SKIPPED [5] ../../../testing/python/approx.py:88: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:362: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:386: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:410: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:428: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:442: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:455: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:584: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:595: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1]
> ../../../.pybuild/cpython3_3.10_pytest/build/_pytest/pathlib.py:431: symlinks
> not supported: [Errno 17] File exists:
> '/tmp/pytest-of-user42/pytest-9/test_collect_symlink_dir0/symlink_dir' ->
> '/tmp/pytest-of-user42/pytest-9/test_collect_symlink_dir0/dir'
> SKIPPED [1] ../../../testing/test_conftest.py:291: only relevant for case
> insensitive file systems
> SKIPPED [1] ../../../testing/test_junitxml.py:1253: could not import 'xdist':
> No module named 'xdist'
> SKIPPED [1] ../../../testing/test_junitxml.py:1303: could not import 'xdist':
> No module named 'xdist'
> SKIPPED [1] ../../../testing/test_unittest.py:1235: could not import
> 'asynctest': No module named 'asynctest'
> SKIPPED [3] ../../../testing/test_warnings.py:516: This test should be
> enabled again before pytest 7.0 is released
> SKIPPED [1] ../../../testing/python/fixtures.py:4297: could not import
> 'numpy': No module named 'numpy'
> SKIPPED [39]
> ../../../.pybuild/cpython3_3.10_pytest/build/_pytest/pytester.py:1458: could
> not import 'pexpect': No module named 'pexpect'
> SKIPPED [1] ../../../testing/test_faulthandler.py:52: sometimes crashes on CI
> (#7022)
> XFAIL
> ../../../testing/python/fixtures.py::TestAutouseDiscovery::test_setup_enabled_functionnode
> 'enabled' feature not implemented
> XFAIL
> ../../../testing/acceptance_test.py::TestInvocationVariants::test_noclass_discovery_if_not_testcase
> decide: feature or bug
> XFAIL
> ../../../testing/test_capture.py::TestPerTestCapturing::test_capture_scope_cache
> unimplemented feature
> XFAIL
> ../../../testing/test_collection.py::TestPrunetraceback::test_collect_report_postprocessing
> other mechanism for adding to reporting needed
> XFAIL ../../../testing/test_config.py::TestParseIni::test_confcutdir
> probably not needed
> XFAIL
> ../../../testing/test_doctest.py::TestLiterals::test_number_non_matches['3.1416'-'3.14']
> XFAIL
> ../../../testing/test_mark.py::TestKeywordSelection::test_keyword_extra_dash
> XFAIL ../../../testing/test_pytester.py::test_make_hook_recorder
> reason: internal reportrecorder tests need refactoring
> XFAIL ../../../testing/test_runner.py::test_runtest_in_module_ordering
> = 2 failed, 2821 passed, 68 skipped, 4 deselected, 9 xfailed in 107.37s
> (0:01:47) =
> E: pybuild pybuild:355: test: plugin custom failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/debian/tmp/test-working-directory && python3.10 -m pytest
> --lsof -rfsxX --ignore=/<<PKGBUILDDIR>>/testing/test_entry_points.py
> --ignore=/<<PKGBUILDDIR>>/testing/test_terminal.py -k 'not
> test_code_highlight' /<<PKGBUILDDIR>>/testing
> I: pybuild pybuild:286: mkdir -p
> /<<PKGBUILDDIR>>/debian/tmp/test-working-directory
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/debian/tmp/test-working-directory &&
> python3.9 -m pytest --lsof -rfsxX
> --ignore=/<<PKGBUILDDIR>>/testing/test_entry_points.py
> --ignore=/<<PKGBUILDDIR>>/testing/test_terminal.py -k 'not
> test_code_highlight' /<<PKGBUILDDIR>>/testing
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> plugins: hypothesis-5.43.3
> collected 2904 items / 4 deselected / 2900 selected
>
> ../../../testing/acceptance_test.py ...... [
> 0%]
> ../../../testing/deprecated_test.py ............. [
> 0%]
> ../../../testing/test_argcomplete.py .. [
> 0%]
> ../../../testing/test_assertion.py ..................................... [
> 2%]
> ......................... [
> 2%]
> ../../../testing/test_assertrewrite.py ................................. [
> 4%]
> ...... [
> 4%]
> ../../../testing/test_capture.py ....................................... [
> 5%]
> .................s....s.. [
> 6%]
> ../../../testing/test_collection.py . [
> 6%]
> ../../../testing/test_compat.py ........... [
> 6%]
> ../../../testing/test_config.py ........................................ [
> 8%]
> ........ [
> 8%]
> ../../../testing/test_conftest.py ........... [
> 8%]
> ../../../testing/test_debugging.py .. [
> 8%]
> ../../../testing/test_doctest.py ........... [
> 9%]
> ../../../testing/test_faulthandler.py ... [
> 9%]
> ../../../testing/test_findpaths.py ............. [
> 9%]
> ../../../testing/test_junitxml.py .... [
> 10%]
> ../../../testing/test_main.py ..... [
> 10%]
> ../../../testing/test_mark.py ................ [
> 10%]
> ../../../testing/test_mark_expression.py ............................... [
> 11%]
> .................................................... [
> 13%]
> ../../../testing/test_monkeypatch.py ............................... [
> 14%]
> ../../../testing/test_nodes.py ........... [
> 15%]
> ../../../testing/test_nose.py .. [
> 15%]
> ../../../testing/test_parseopt.py ............................ [
> 16%]
> ../../../testing/test_pastebin.py .... [
> 16%]
> ../../../testing/test_pathlib.py ....................................... [
> 17%]
> ........................s [
> 18%]
> ../../../testing/test_pluginmanager.py ......... [
> 18%]
> ../../../testing/test_pytester.py ..................... [
> 19%]
> ../../../testing/test_recwarn.py ....................................... [
> 20%]
> [
> 20%]
> ../../../testing/test_runner.py .............. [
> 21%]
> ../../../testing/test_skipping.py . [
> 21%]
> ../../../testing/test_store.py . [
> 21%]
> ../../../testing/test_tmpdir.py ...s.............. [
> 21%]
> ../../../testing/test_warning_types.py ........... [
> 22%]
> ../../../testing/test_warnings.py . [
> 22%]
> ../../../testing/code/test_code.py ................. [
> 22%]
> ../../../testing/code/test_excinfo.py ...............s.................. [
> 24%]
> ........................................................................ [
> 26%]
> .................... [
> 27%]
> ../../../testing/code/test_source.py ................................... [
> 28%]
> ................... [
> 29%]
> ../../../testing/freeze/tests/test_trivial.py .. [
> 29%]
> ../../../testing/io/test_saferepr.py ........... [
> 29%]
> ../../../testing/io/test_terminalwriter.py ............................. [
> 30%]
> ............ [
> 31%]
> ../../../testing/io/test_wcwidth.py ................. [
> 31%]
> ../../../testing/logging/test_fixture.py ........ [
> 31%]
> ../../../testing/logging/test_formatter.py ... [
> 32%]
> ../../../testing/logging/test_reporting.py .. [
> 32%]
> ../../../testing/python/approx.py ..sssss............................... [
> 33%]
> ..ssssss................ss. [
> 34%]
> ../../../testing/python/collect.py .. [
> 34%]
> ../../../testing/python/fixtures.py ................x..... [
> 35%]
> ../../../testing/python/integration.py .... [
> 35%]
> ../../../testing/python/metafunc.py .................................... [
> 36%]
> ..... [
> 36%]
> ../../../testing/python/raises.py ..................... [
> 37%]
> ../../../testing/freeze/tests/test_doctest.txt . [
> 37%]
> ../../../testing/acceptance_test.py .................................... [
> 38%]
> ...............x................... [
> 39%]
> ../../../testing/deprecated_test.py ....... [
> 40%]
> ../../../testing/test_assertion.py ................................ [
> 41%]
> ../../../testing/test_assertrewrite.py ................................. [
> 42%]
> ....... [
> 42%]
> ../../../testing/test_cacheprovider.py ................................. [
> 43%]
> ................. [
> 44%]
> ../../../testing/test_capture.py ......x........................s....... [
> 45%]
> .... [
> 45%]
> ../../../testing/test_collection.py ...........................x........ [
> 47%]
> ...........................s............... [
> 48%]
> ../../../testing/test_compat.py .. [
> 48%]
> ../../../testing/test_config.py ...........x............................ [
> 50%]
> ........................................................................ [
> 52%]
> ..... [
> 52%]
> ../../../testing/test_conftest.py ............s......................... [
> 53%]
> .... [
> 54%]
> ../../../testing/test_debugging.py ............ [
> 54%]
> ../../../testing/test_doctest.py ....................................... [
> 55%]
> .....................x.................................................. [
> 58%]
> ....... [
> 58%]
> ../../../testing/test_error_diffs.py ............ [
> 59%]
> ../../../testing/test_faulthandler.py .. [
> 59%]
> ../../../testing/test_helpconfig.py ........ [
> 59%]
> ../../../testing/test_junitxml.py ...................................... [
> 60%]
> ...........................................................s...s........ [
> 63%]
> .............. [
> 63%]
> ../../../testing/test_link_resolve.py . [
> 63%]
> ../../../testing/test_main.py ............ [
> 64%]
> ../../../testing/test_mark.py .......................................... [
> 65%]
> ..................x............... [
> 66%]
> ../../../testing/test_monkeypatch.py .... [
> 66%]
> ../../../testing/test_nodes.py .... [
> 66%]
> ../../../testing/test_nose.py .................. [
> 67%]
> ../../../testing/test_parseopt.py . [
> 67%]
> ../../../testing/test_pastebin.py ... [
> 67%]
> ../../../testing/test_pluginmanager.py ................ [
> 68%]
> ../../../testing/test_pytester.py x...................... [
> 69%]
> ../../../testing/test_recwarn.py .. [
> 69%]
> ../../../testing/test_reports.py ................. [
> 69%]
> ../../../testing/test_runner.py ......................x................. [
> 71%]
> .... [
> 71%]
> ../../../testing/test_runner_xunit.py ............. [
> 71%]
> ../../../testing/test_session.py ....................... [
> 72%]
> ../../../testing/test_setuponly.py .......................... [
> 73%]
> ../../../testing/test_setupplan.py ... [
> 73%]
> ../../../testing/test_skipping.py ...................................... [
> 74%]
> .............................................. [
> 76%]
> ../../../testing/test_stepwise.py .......... [
> 76%]
> ../../../testing/test_threadexception.py .... [
> 76%]
> ../../../testing/test_tmpdir.py ................. [
> 77%]
> ../../../testing/test_unittest.py ...................................... [
> 78%]
> .....................s...... [
> 79%]
> ../../../testing/test_unraisableexception.py .... [
> 79%]
> ../../../testing/test_warning_types.py . [
> 79%]
> ../../../testing/test_warnings.py ...................sss........ [
> 80%]
> ../../../testing/code/test_excinfo.py ... [
> 81%]
> ../../../testing/examples/test_issue519.py . [
> 81%]
> ../../../testing/logging/test_fixture.py ....... [
> 81%]
> ../../../testing/logging/test_reporting.py ............................. [
> 82%]
> ......... [
> 82%]
> ../../../testing/python/approx.py . [
> 82%]
> ../../../testing/python/collect.py ..................................... [
> 83%]
> ..................................... [
> 85%]
> ../../../testing/python/fixtures.py .................................... [
> 86%]
> ........................................................................ [
> 88%]
> ................................................s.. [
> 90%]
> ../../../testing/python/integration.py ................ [
> 91%]
> ../../../testing/python/metafunc.py .................................... [
> 92%]
> ........................ [
> 93%]
> ../../../testing/python/raises.py ... [
> 93%]
> ../../../testing/python/show_fixtures_per_test.py ...... [
> 93%]
> ../../../testing/acceptance_test.py .... [
> 93%]
> ../../../testing/test_assertion.py ............ [
> 94%]
> ../../../testing/test_assertrewrite.py ......... [
> 94%]
> ../../../testing/test_capture.py ........................ [
> 95%]
> ../../../testing/test_collection.py . [
> 95%]
> ../../../testing/test_compat.py . [
> 95%]
> ../../../testing/test_config.py .. [
> 95%]
> ../../../testing/test_debugging.py sssssssssss.ssssssssssssssss.sss....s [
> 96%]
> sss.sss [
> 96%]
> ../../../testing/test_faulthandler.py ...s. [
> 97%]
> ../../../testing/test_helpconfig.py .. [
> 97%]
> ../../../testing/test_meta.py .......................................... [
> 98%]
> .................. [
> 99%]
> ../../../testing/test_pytester.py .....s [
> 99%]
> ../../../testing/test_reports.py . [
> 99%]
> ../../../testing/test_unittest.py s. [
> 99%]
> ../../../testing/test_warnings.py ......... [
> 99%]
> ../../../testing/python/collect.py . [
> 99%]
> ../../../testing/python/fixtures.py ..
> [100%]
>
> =========================== short test summary info
> ============================
> SKIPPED [2] ../../../testing/test_capture.py:948: could not run 'lsof'
> (FileNotFoundError(2, 'No such file or directory'))
> SKIPPED [1] ../../../testing/test_capture.py:1433: only on windows
> SKIPPED [1] ../../../testing/test_pathlib.py:420: Windows only
> SKIPPED [1] ../../../testing/test_tmpdir.py:238: win only
> SKIPPED [1] ../../../testing/code/test_excinfo.py:259: could not import
> 'decorator': No module named 'decorator'
> SKIPPED [5] ../../../testing/python/approx.py:88: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:362: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:386: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:410: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:428: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:442: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:455: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:584: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1] ../../../testing/python/approx.py:595: could not import 'numpy':
> No module named 'numpy'
> SKIPPED [1]
> ../../../.pybuild/cpython3_3.9_pytest/build/_pytest/pathlib.py:431: symlinks
> not supported: [Errno 17] File exists:
> '/tmp/pytest-of-user42/pytest-10/test_collect_symlink_dir0/symlink_dir' ->
> '/tmp/pytest-of-user42/pytest-10/test_collect_symlink_dir0/dir'
> SKIPPED [1] ../../../testing/test_conftest.py:291: only relevant for case
> insensitive file systems
> SKIPPED [1] ../../../testing/test_junitxml.py:1253: could not import 'xdist':
> No module named 'xdist'
> SKIPPED [1] ../../../testing/test_junitxml.py:1303: could not import 'xdist':
> No module named 'xdist'
> SKIPPED [1] ../../../testing/test_unittest.py:1235: could not import
> 'asynctest': No module named 'asynctest'
> SKIPPED [3] ../../../testing/test_warnings.py:516: This test should be
> enabled again before pytest 7.0 is released
> SKIPPED [1] ../../../testing/python/fixtures.py:4297: could not import
> 'numpy': No module named 'numpy'
> SKIPPED [39]
> ../../../.pybuild/cpython3_3.9_pytest/build/_pytest/pytester.py:1458: could
> not import 'pexpect': No module named 'pexpect'
> SKIPPED [1] ../../../testing/test_faulthandler.py:52: sometimes crashes on CI
> (#7022)
> XFAIL
> ../../../testing/python/fixtures.py::TestAutouseDiscovery::test_setup_enabled_functionnode
> 'enabled' feature not implemented
> XFAIL
> ../../../testing/acceptance_test.py::TestInvocationVariants::test_noclass_discovery_if_not_testcase
> decide: feature or bug
> XFAIL
> ../../../testing/test_capture.py::TestPerTestCapturing::test_capture_scope_cache
> unimplemented feature
> XFAIL
> ../../../testing/test_collection.py::TestPrunetraceback::test_collect_report_postprocessing
> other mechanism for adding to reporting needed
> XFAIL ../../../testing/test_config.py::TestParseIni::test_confcutdir
> probably not needed
> XFAIL
> ../../../testing/test_doctest.py::TestLiterals::test_number_non_matches['3.1416'-'3.14']
> XFAIL
> ../../../testing/test_mark.py::TestKeywordSelection::test_keyword_extra_dash
> XFAIL ../../../testing/test_pytester.py::test_make_hook_recorder
> reason: internal reportrecorder tests need refactoring
> XFAIL ../../../testing/test_runner.py::test_runtest_in_module_ordering
> ==== 2823 passed, 68 skipped, 4 deselected, 9 xfailed in 104.04s (0:01:44)
> =====
> I: pybuild pybuild:312: rm -rf
> /<<PKGBUILDDIR>>/debian/tmp/test-working-directory
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.10
> 3.9" --system=custom returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2021/12/20/pytest_6.2.5-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---