mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
ruff: Bump target-version from py38 to py310.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3f29bc42b1
commit
48202389b8
@@ -226,9 +226,10 @@ class ZulipTestCaseMixin(SimpleTestCase):
|
||||
if not settings.BAN_CONSOLE_OUTPUT and self.expected_console_output is None:
|
||||
return super().run(result)
|
||||
extra_output_finder = ExtraConsoleOutputFinder()
|
||||
with tee_stderr_and_find_extra_console_output(
|
||||
extra_output_finder
|
||||
), tee_stdout_and_find_extra_console_output(extra_output_finder):
|
||||
with (
|
||||
tee_stderr_and_find_extra_console_output(extra_output_finder),
|
||||
tee_stdout_and_find_extra_console_output(extra_output_finder),
|
||||
):
|
||||
test_result = super().run(result)
|
||||
if extra_output_finder.full_extra_output and (
|
||||
test_result is None or test_result.wasSuccessful()
|
||||
@@ -1567,9 +1568,13 @@ Output:
|
||||
This raises a failure inside of the try/except block of
|
||||
markdown.__init__.do_convert.
|
||||
"""
|
||||
with mock.patch(
|
||||
"zerver.lib.markdown.unsafe_timeout", side_effect=subprocess.CalledProcessError(1, [])
|
||||
), self.assertLogs(level="ERROR"): # For markdown_logger.exception
|
||||
with (
|
||||
mock.patch(
|
||||
"zerver.lib.markdown.unsafe_timeout",
|
||||
side_effect=subprocess.CalledProcessError(1, []),
|
||||
),
|
||||
self.assertLogs(level="ERROR"),
|
||||
): # For markdown_logger.exception
|
||||
yield
|
||||
|
||||
def create_default_device(
|
||||
|
||||
Reference in New Issue
Block a user