forked from orbit-oss/flask
clean up pytest.raises tests
This commit is contained in:
parent
ef7d01f0a0
commit
ef6c2b9e4a
4 changed files with 25 additions and 22 deletions
|
|
@ -305,9 +305,9 @@ def test_lazy_load_error(monkeypatch):
|
|||
|
||||
lazy = DispatchingApp(bad_load, use_eager_loading=False)
|
||||
|
||||
with pytest.raises(BadExc):
|
||||
# reduce flakiness by waiting for the internal loading lock
|
||||
with lazy._lock:
|
||||
# reduce flakiness by waiting for the internal loading lock
|
||||
with lazy._lock:
|
||||
with pytest.raises(BadExc):
|
||||
lazy._flush_bg_loading_exception()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue