test_exceptions.py
2.6 KB
-
Add a method to check Python exception types (#772) · 83a8a977
This commit adds `error_already_set::matches()` convenience method to check if the exception trapped by `error_already_set` matches a given Python exception type. This will address #700 by providing a less verbose way to check exceptions.
Roman Miroshnychenko committed