On Wed, Mar 20, 2024 at 10:02:14PM +0100, Lucas Nussbaum wrote: > During a rebuild of all packages in sid, your package failed to build > on amd64. [...] > > /usr/lib/python3/dist-packages/flexmock/_integrations.py:101: in <module> > > saved_pytest = runner.call_runtest_hook > > E AttributeError: module '_pytest.runner' has no attribute > > 'call_runtest_hook'
This was fallout from https://bugs.debian.org/1067358, and has since been fixed. However, there's now a different error: dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> plugins: typeguard-4.3.0, flexmock-0.12.1 collected 59 items tests/test_commands.py ....... [ 11%] tests/test_concurrency.py . [ 13%] tests/test_container_info.py F [ 15%] tests/test_docker_backend.py FFF.F [ 23%] tests/test_net.py .. [ 27%] tests/test_util.py ................................ [ 81%] tests/test_widgets.py ........... [100%] =================================== FAILURES =================================== ________________________________ test_short_id _________________________________ def test_short_id(): mock() > b = DockerBackend() tests/test_container_info.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <sen.docker_backend.DockerBackend object at 0x7f32eee76930> def __init__(self): self._containers = None self._images = None # displayed images self._all_images = None # docker images -a self._df = None kwargs = {"version": "auto"} > kwargs.update(docker.utils.kwargs_from_env(assert_hostname=False)) E TypeError: kwargs_from_env() got an unexpected keyword argument 'assert_hostname' sen/docker_backend.py:794: TypeError _______________________________ test_images_call _______________________________ def test_images_call(): mock() > b = DockerBackend() tests/test_docker_backend.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <sen.docker_backend.DockerBackend object at 0x7f32ee17c4a0> def __init__(self): self._containers = None self._images = None # displayed images self._all_images = None # docker images -a self._df = None kwargs = {"version": "auto"} > kwargs.update(docker.utils.kwargs_from_env(assert_hostname=False)) E TypeError: kwargs_from_env() got an unexpected keyword argument 'assert_hostname' sen/docker_backend.py:794: TypeError _____________________________ test_containers_call _____________________________ def test_containers_call(): mock() > b = DockerBackend() tests/test_docker_backend.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <sen.docker_backend.DockerBackend object at 0x7f32ee17c2c0> def __init__(self): self._containers = None self._images = None # displayed images self._all_images = None # docker images -a self._df = None kwargs = {"version": "auto"} > kwargs.update(docker.utils.kwargs_from_env(assert_hostname=False)) E TypeError: kwargs_from_env() got an unexpected keyword argument 'assert_hostname' sen/docker_backend.py:794: TypeError ________________________________ test_short_id _________________________________ def test_short_id(): mock() > b = DockerBackend() tests/test_docker_backend.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <sen.docker_backend.DockerBackend object at 0x7f32ee17c6e0> def __init__(self): self._containers = None self._images = None # displayed images self._all_images = None # docker images -a self._df = None kwargs = {"version": "auto"} > kwargs.update(docker.utils.kwargs_from_env(assert_hostname=False)) E TypeError: kwargs_from_env() got an unexpected keyword argument 'assert_hostname' sen/docker_backend.py:794: TypeError __________________________________ test_stats __________________________________ def test_stats(): mock() > b = DockerBackend() tests/test_docker_backend.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <sen.docker_backend.DockerBackend object at 0x7f32ee17cc80> def __init__(self): self._containers = None self._images = None # displayed images self._all_images = None # docker images -a self._df = None kwargs = {"version": "auto"} > kwargs.update(docker.utils.kwargs_from_env(assert_hostname=False)) E TypeError: kwargs_from_env() got an unexpected keyword argument 'assert_hostname' sen/docker_backend.py:794: TypeError =============================== warnings summary =============================== tests/test_widgets.py:7 tests/test_widgets.py:7 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_widgets.py:7: DeprecationWarning: urwid.listbox is moved to urwid.widget.listbox from urwid.listbox import SimpleListWalker .pybuild/cpython3_3.12/build/tests/test_concurrency.py::test_main_frame /usr/lib/python3/dist-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-1 (add_and_remove_random) Traceback (most recent call last): File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_concurrency.py", line 59, in add_and_remove_random loop_skeleton(greater_f, less_f, widgets, lower_bound, upper_bound, list_count) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_concurrency.py", line 38, in loop_skeleton less_f() File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_concurrency.py", line 50, in less_f frame.notify_widget(w) ^^^^^^^^^^^^^^^^^^^ AttributeError: 'WidgetBase' object has no attribute 'notify_widget' warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1007: DeprecationWarning: urwid.lcd_display is moved to urwid.display.lcd if ismodule(module) and hasattr(module, '__file__'): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1008: DeprecationWarning: urwid.lcd_display is moved to urwid.display.lcd f = module.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:914: DeprecationWarning: urwid.lcd_display is moved to urwid.display.lcd if getattr(object, '__file__', None): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:915: DeprecationWarning: urwid.lcd_display is moved to urwid.display.lcd return object.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1007: DeprecationWarning: urwid.html_fragment is moved to urwid.display.html_fragment if ismodule(module) and hasattr(module, '__file__'): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1008: DeprecationWarning: urwid.html_fragment is moved to urwid.display.html_fragment f = module.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:914: DeprecationWarning: urwid.html_fragment is moved to urwid.display.html_fragment if getattr(object, '__file__', None): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:915: DeprecationWarning: urwid.html_fragment is moved to urwid.display.html_fragment return object.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1007: DeprecationWarning: urwid.web_display is moved to urwid.display.web if ismodule(module) and hasattr(module, '__file__'): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1008: DeprecationWarning: urwid.web_display is moved to urwid.display.web f = module.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:914: DeprecationWarning: urwid.web_display is moved to urwid.display.web if getattr(object, '__file__', None): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:915: DeprecationWarning: urwid.web_display is moved to urwid.display.web return object.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1007: DeprecationWarning: urwid.monitored_list is moved to urwid.widget.monitored_list if ismodule(module) and hasattr(module, '__file__'): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1008: DeprecationWarning: urwid.monitored_list is moved to urwid.widget.monitored_list f = module.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:914: DeprecationWarning: urwid.monitored_list is moved to urwid.widget.monitored_list if getattr(object, '__file__', None): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:915: DeprecationWarning: urwid.monitored_list is moved to urwid.widget.monitored_list return object.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1007: DeprecationWarning: urwid.treetools is moved to urwid.widget.treetools if ismodule(module) and hasattr(module, '__file__'): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:1008: DeprecationWarning: urwid.treetools is moved to urwid.widget.treetools f = module.__file__ .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:914: DeprecationWarning: urwid.treetools is moved to urwid.widget.treetools if getattr(object, '__file__', None): .pybuild/cpython3_3.12/build/tests/test_container_info.py::test_short_id /usr/lib/python3.12/inspect.py:915: DeprecationWarning: urwid.treetools is moved to urwid.widget.treetools return object.__file__ .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_table_random_data .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_table_random_data .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_table_random_data .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_table_random_data .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_table_random_data .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_assemble_rows_long_text .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_assemble_rows_long_text .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_assemble_rows_long_text .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_assemble_rows_long_text /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/sen/tui/widgets/list/util.py:73: PendingDeprecationWarning: only for backwards compatibility. You should use the new standard container `contents` for w in self.columns.widget_list: .pybuild/cpython3_3.12/build/tests/test_widgets.py::test_table_random_data /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_widgets.py:101: PendingDeprecationWarning: only for backwards compatibility. You should use the new standard container `contents` assert text[0].startswith(rows[0].original_widget.widget_list[0].text.encode("utf-8")) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_container_info.py::test_short_id - TypeError: kwargs_from_e... FAILED tests/test_docker_backend.py::test_images_call - TypeError: kwargs_fro... FAILED tests/test_docker_backend.py::test_containers_call - TypeError: kwargs... FAILED tests/test_docker_backend.py::test_short_id - TypeError: kwargs_from_e... FAILED tests/test_docker_backend.py::test_stats - TypeError: kwargs_from_env(... ================== 5 failed, 54 passed, 33 warnings in 2.43s =================== E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 returned exit code 13 This is https://github.com/TomasTomecek/sen/issues/175, fixed upstream. I'll repurpose this bug for that and cherry-pick that upstream PR. Thanks, -- Colin Watson (he/him) [[email protected]]

