Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove trailing spaces.
  • Loading branch information
serhiy-storchaka committed Sep 6, 2023
commit 49d19514c0a38784af35ad4cd85242b6eeaf3c63
6 changes: 3 additions & 3 deletions Lib/test/test_sys_settrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ def run_test(self, func, jumpFrom, jumpTo, expected, error=None,
tracer = JumpTracer(func, jumpFrom, jumpTo, event, decorated)
sys.settrace(tracer.trace)
output = []

with contextlib.ExitStack() as stack:
if error is not None:
stack.enter_context(self.assertRaisesRegex(*error))
Expand All @@ -1964,7 +1964,7 @@ def run_async_test(self, func, jumpFrom, jumpTo, expected, error=None,
if warning is not None:
stack.enter_context(self.assertWarnsRegex(*warning))
asyncio.run(func(output))

sys.settrace(None)
asyncio.set_event_loop_policy(None)
self.compare_jump_output(expected, output)
Expand Down Expand Up @@ -2761,7 +2761,7 @@ def test_jump_backward_over_listcomp_v2(output):
flag = 6
output.append(7)
output.append(8)

@async_jump_test(1, 2, [], event='call', error=(Exception, 'Test Error'),
warning=(Warning, 'Test Warning'))
def test_error_and_warning_in_tandem_async(output):
Expand Down