with create_modules(modules):
self.expect_set = [
('line', 2, 'tfunc_import'),
- break_in_func('func', TEST_MODULE_FNAME, False, '1 / 0'),
+ break_in_func('func', TEST_MODULE_FNAME, False, '1 // 0'),
('None', 2, 'tfunc_import'), ('continue', ),
('line', 3, 'func', ({1:1}, [])), ('quit', ),
]
"can only jump from a 'line' trace event"))
def test_no_jump_from_exception_event(output):
output.append(1)
- 1 / 0
+ 1 // 0
@jump_test(3, 2, [2], event='return', error=(ValueError,
"can't jump from a yield statement"))