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 self-tests.
  • Loading branch information
serhiy-storchaka committed Sep 6, 2023
commit 705941ce8f15aa91b97ca8952d7c993475731221
24 changes: 0 additions & 24 deletions Lib/test/test_sys_settrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2696,18 +2696,6 @@ class fake_function:
sys.settrace(None)
self.compare_jump_output([2, 3, 2, 3, 4], namespace["output"])

@jump_test(1, 2, [], event='call', error=(Exception, 'Test Error'),
warning=(Warning, 'Test Warning'))
def test_error_and_warning_in_tandem(output):
raise Exception("Test Error")
warnings.warn(Warning("Test Warning"))

@jump_test(1, 2, [], event='call', error=(Exception, 'Test Error'),
warning=(Warning, 'Test Warning'))
def test_warning_and_error_in_tandem(output):
warnings.warn(Warning("Test Warning"))
raise Exception("Test Error")

@jump_test(2, 3, [1], event='call', error=(ValueError, "can't jump from"
" the 'call' trace event of a new frame"))
def test_no_jump_from_call(output):
Expand Down Expand Up @@ -2762,18 +2750,6 @@ def test_jump_backward_over_listcomp_v2(output):
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):
raise Exception("Test Error")
warnings.warn(Warning("Test Warning"))

@async_jump_test(1, 2, [], event='call', error=(Exception, 'Test Error'),
warning=(Warning, 'Test Warning'))
def test_warning_and_error_in_tandem_async(output):
warnings.warn(Warning("Test Warning"))
raise Exception("Test Error")

@async_jump_test(2, 3, [1, 3], warning=(RuntimeWarning, unbound_locals))
async def test_jump_forward_over_async_listcomp(output):
output.append(1)
Expand Down