We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f087aa commit 1f22198Copy full SHA for 1f22198
tests/test_util.py
@@ -142,10 +142,5 @@ async def initialise(self):
142
subcontroller = ControllerWithWrongType()
143
self.register_sub_controller("MySubController", subcontroller)
144
145
- with pytest.raises(RuntimeError) as excinfo:
+ with pytest.raises(RuntimeError, match="failed to introspect hinted attribute"):
146
Backend(TopController(), loop)
147
-
148
- assert str(excinfo.value) == (
149
- "Controller `ControllerWithWrongType` failed to introspect hinted attribute "
150
- "`hinted_missing` during initialisation"
151
- )
0 commit comments