diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 24992fec0..ccac4536d 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -331,7 +331,9 @@ def _test_flaky_exception_failure_point_init_before_py_3_12(): # Checking the first two lines of the traceback as formatted in error_string(): assert "test_exceptions.py(" in lines[3] assert lines[3].endswith("): __init__") - assert lines[4].endswith("): test_flaky_exception_failure_point_init") + assert lines[4].endswith( + "): _test_flaky_exception_failure_point_init_before_py_3_12" + ) def _test_flaky_exception_failure_point_init_py_3_12():