Skip to content

Commit

Permalink
test: change the error type being tested (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 25, 2022
1 parent 5edccca commit 7e99efa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest
from psygnal import EmitLoopError

from magicgui import magic_factory
from magicgui.type_map._magicgui import MagicFactory
Expand Down Expand Up @@ -113,7 +114,7 @@ def factory(x: int = 1):

widget = factory()

with pytest.raises(RuntimeError):
with pytest.raises(EmitLoopError):
widget()


Expand Down

0 comments on commit 7e99efa

Please sign in to comment.