Skip to content

Commit 1f22198

Browse files
jsouterGDYendell
andcommitted
Update tests/test_util.py
Co-authored-by: Gary Yendell <[email protected]>
1 parent 8f087aa commit 1f22198

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
@@ -142,10 +142,5 @@ async def initialise(self):
142142
subcontroller = ControllerWithWrongType()
143143
self.register_sub_controller("MySubController", subcontroller)
144144

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

Comments
 (0)