Skip to content

Commit 38a39cf

Browse files
jsouterGDYendell
authored andcommitted
Update tests/test_util.py
Co-authored-by: Gary Yendell <[email protected]>
1 parent 98a5397 commit 38a39cf

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
@@ -153,10 +153,5 @@ async def initialise(self):
153153
subcontroller = ControllerWithWrongType()
154154
self.register_sub_controller("MySubController", subcontroller)
155155

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

Comments
 (0)