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 98a5397 commit 38a39cfCopy full SHA for 38a39cf
tests/test_util.py
@@ -153,10 +153,5 @@ async def initialise(self):
153
subcontroller = ControllerWithWrongType()
154
self.register_sub_controller("MySubController", subcontroller)
155
156
- with pytest.raises(RuntimeError) as excinfo:
+ with pytest.raises(RuntimeError, match="failed to introspect hinted attribute"):
157
Backend(TopController(), loop)
158
-
159
- assert str(excinfo.value) == (
160
- "Controller `ControllerWithWrongType` failed to introspect hinted attribute "
161
- "`hinted_missing` during initialisation"
162
- )
0 commit comments