clean up pytest.raises tests

This commit is contained in:
David Lord 2022-04-28 09:32:31 -07:00
parent ef7d01f0a0
commit ef6c2b9e4a
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 25 additions and 22 deletions

View file

@ -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()