Skip to content

Commit 516d300

Browse files
jsouterGDYendell
andauthored
Update tests/test_util.py
Co-authored-by: Gary Yendell <[email protected]>
1 parent 099315c commit 516d300

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_util.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,5 @@ async def initialise(self):
140140
subcontroller = ControllerWithWrongType()
141141
self.register_sub_controller("MySubController", subcontroller)
142142

143-
with pytest.raises(RuntimeError) as excinfo:
143+
with pytest.raises(RuntimeError, match="failed to introspect hinted attribute"):
144144
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

Comments
 (0)