Commit 10ff0e79 authored by Peter Grayson's avatar Peter Grayson
Browse files

test: allow PEP 657 location underlines in test_exception_chaining

parent 81c72186
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -135,6 +135,9 @@ def test_exception_chaining(env):
            .replace(r'\{path\}', r'.*')
        )

        # Allow optional PEP 657 (Python 3.11+) caret/tilde underline lines.
        expected = expected.replace('\n', '\n' + r'(?:[ \t]+[~^]+\n)?')

        if platform.system() == 'Windows':
            expected = expected.replace(r'\/', r'\\')