Skip to content
Myr

Make test more idiomatic

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Diggory Blake · committed by Markus Unterwaditzer · parent d0e2e7b · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • tests:+1 added−4 removed

1 file+1 added−4 removed

modified:tests/test_basic.py+1 added-4 removed
798 unmodified lines
799 def broken_func():800 raise KeyboardInterrupt()801802 with app.test_client() as c:803 try:803 with pytest.raises(KeyboardInterrupt):804 c.get('/')805 raise AssertionError("KeyboardInterrupt should have been raised")806 except KeyboardInterrupt:807 pass805806 ctx = flask._request_ctx_stack.top807 assert ctx.preserved808 assert type(ctx._preserved_exc) is KeyboardInterrupt
892 unmodified lines