Skip to content

Commit 751d726

Browse files
authored
nonpython example now repr all exceptions
The definition of `repr_failure` on the `YamlItem` subclass only handled the custom `YamlException` class, which hides all other errors from the user. By adding in the `super` call we ensure all other exception types also appropriately handled by `repr_failure`.
1 parent 9e491f4 commit 751d726

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/en/example/nonpython/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def repr_failure(self, excinfo):
3838
" no further details known at this point.",
3939
]
4040
)
41+
return super().repr_failure(excinfo)
4142

4243
def reportinfo(self):
4344
return self.path, 0, f"usecase: {self.name}"

0 commit comments

Comments
 (0)