[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (GH-28510)

(cherry picked from commit a0073471002bed0169fb806703e26880bbcceb73)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
1 file changed