We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75805ad commit 40c16b8Copy full SHA for 40c16b8
tests/cli/test_cmdline.py
@@ -37,10 +37,15 @@ def fn(*_):
37
patch("streamlink_cli.output.player.sleep"):
38
mock_argv.__getitem__.side_effect = lambda x: args[x]
39
mock_popen.return_value = Mock(poll=Mock(side_effect=poll_factory([None, 0])))
40
+
41
+ level = streamlink_cli.main.logger.root.level
42
43
try:
44
streamlink_cli.main.main()
45
except SystemExit as exc:
46
actual_exit_code = exc.code
47
+ finally:
48
+ streamlink_cli.main.logger.root.level = level
49
50
assert exit_code == actual_exit_code
51
assert mock_setup_streamlink.call_count == 1
0 commit comments