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 099315c commit 516d300Copy full SHA for 516d300
tests/test_util.py
@@ -140,10 +140,5 @@ async def initialise(self):
140
subcontroller = ControllerWithWrongType()
141
self.register_sub_controller("MySubController", subcontroller)
142
143
- with pytest.raises(RuntimeError) as excinfo:
+ with pytest.raises(RuntimeError, match="failed to introspect hinted attribute"):
144
Backend(TopController(), loop)
145
-
146
- assert str(excinfo.value) == (
147
- "Controller `ControllerWithWrongType` failed to introspect hinted attribute "
148
- "`hinted_missing` during initialisation"
149
- )
0 commit comments