Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest fail #171

Open
hfiguiere opened this issue Oct 27, 2024 · 0 comments
Open

pytest fail #171

hfiguiere opened this issue Oct 27, 2024 · 0 comments

Comments

@hfiguiere
Copy link
Contributor

hfiguiere commented Oct 27, 2024

When I run the tests on main (commit a885ffe ):

% ninja -C _build test                                                    
ninja: Entering directory `_build'
[0/1] Running all tests.
1/3 Qt 5 unit test        OK               0.04s
2/3 Qt 6 unit test        OK               0.04s
3/3 pytest                FAIL             0.39s   killed by signal 6 SIGABRT
>>> UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 LD_LIBRARY_PATH=/var/home/hub/source/libportal/_build/libportal GI_TYPELIB_PATH=/var/home/hub/source/libportal/_build/libportal MALLOC_PERTURB_=248 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 /usr/bin/pytest-3 --verbose --verbose --log-level=DEBUG
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /var/home/hub/source/libportal/tests
collecting ... 
stderr:
Fatal Python error: Aborted

Current thread 0x00007f25bca2db80 (most recent call first):
  File "/usr/lib64/python3.12/site-packages/gi/module.py", line 172 in __getattr__
  File "/var/home/hub/source/libportal/tests/pyportaltest/test_inputcapture.py", line 23 in SessionSetup
  File "/var/home/hub/source/libportal/tests/pyportaltest/test_inputcapture.py", line 20 in <module>
  File "/usr/lib/python3.12/site-packages/_pytest/assertion/rewrite.py", line 186 in exec_module
  File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File "<frozen importlib._bootstrap>", line 1387 in _gcd_import
  File "/usr/lib64/python3.12/importlib/__init__.py", line 90 in import_module
  File "/usr/lib/python3.12/site-packages/_pytest/pathlib.py", line 567 in import_path
  File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 617 in _importtestmodule
  File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 528 in _getobj
  File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 310 in obj
  File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 545 in _inject_setup_module_fixture
  File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 531 in collect
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 372 in <lambda>
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 341 in from_call
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 372 in pytest_make_collect_report
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 547 in collect_one_node
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 842 in genitems
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 845 in genitems
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 675 in perform_collect
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 335 in pytest_collection
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 324 in _main
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 271 in wrap_session
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 318 in pytest_cmdline_main
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 169 in main
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 192 in console_main
  File "/usr/bin/pytest-3", line 8 in <module>

Extension modules: gi._gi, cairo._cairo, gi._gi_cairo, _dbus_bindings, _dbus_glib_bindings (total: 5)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――


Summary of Failures:

3/3 pytest         FAIL             0.39s   killed by signal 6 SIGABRT

Ok:                 2   
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /var/home/hub/source/libportal/_build/meson-logs/testlog.txt
FAILED: meson-internal__test 
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant