From 2cd0d712a6ba6be44cce5cd65cd5c8a527778f26 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Fri, 25 Nov 2022 18:26:15 -0500 Subject: [PATCH] test: change the error type being tested --- tests/test_factory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_factory.py b/tests/test_factory.py index 6e5666e3c..24b266ec4 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -1,4 +1,5 @@ import pytest +from psygnal import EmitLoopError from magicgui import magic_factory from magicgui.type_map._magicgui import MagicFactory @@ -113,7 +114,7 @@ def factory(x: int = 1): widget = factory() - with pytest.raises(RuntimeError): + with pytest.raises(EmitLoopError): widget()