Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changes/1481.fix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Test: Fixed that listener unit test module test_start_cmd.py failed with
additional lines. These lines were pytest warnings about unraisable exception
SystemExit that is (correctly) raised in the exit handler.
21 changes: 18 additions & 3 deletions tests/unit/pywbemlistener/test_start_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,13 @@
rc=1,
stderr=[r"Cannot import module nomodule: "
r"No module named .?nomodule.?"],
test='all',
test='in',
),
# The SystemExit raised in the exit handler causes pytest to warn
# about an unraisable exception ("Exception ignored in ..."). According
# to the pytest docs, this warning can be silenced (e.g. with
# "-p no:threadexception"), but that did not work. Therefore, we use
# test='in' to tolerate the warning on stderr.
RUN_NO_WIN,
),
(
Expand All @@ -387,8 +392,13 @@
rc=1,
stderr=[r"Function nofunction\(\) not found in module "
r"tests\.unit\.pywbemlistener\.indicall_display"],
test='all',
test='in',
),
# The SystemExit raised in the exit handler causes pytest to warn
# about an unraisable exception ("Exception ignored in ..."). According
# to the pytest docs, this warning can be silenced (e.g. with
# "-p no:threadexception"), but that did not work. Therefore, we use
# test='in' to tolerate the warning on stderr.
RUN_NO_WIN,
),
(
Expand All @@ -403,8 +413,13 @@
rc=1,
stderr=[r"Cannot import module tests\.unit\.pywbemlistener\."
r"indicall_importerror: ImportError"],
test='all',
test='in',
),
# The SystemExit raised in the exit handler causes pytest to warn
# about an unraisable exception ("Exception ignored in ..."). According
# to the pytest docs, this warning can be silenced (e.g. with
# "-p no:threadexception"), but that did not work. Therefore, we use
# test='in' to tolerate the warning on stderr.
RUN_NO_WIN,
),
(
Expand Down
Loading