X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/882d8795c6ff65c02f2657e596391748d1b6b7f5:/tests/data/cases/pep_654_style.py..refs/heads/master:/.vim/bundle/black/tests/data/cases/static/gitweb.js diff --git a/tests/data/cases/pep_654_style.py b/tests/data/cases/pep_654_style.py deleted file mode 100644 index 0d34650..0000000 --- a/tests/data/cases/pep_654_style.py +++ /dev/null @@ -1,112 +0,0 @@ -# flags: --minimum-version=3.11 -try: - raise OSError("blah") -except * ExceptionGroup as e: - pass - - -try: - async with trio.open_nursery() as nursery: - # Make two concurrent calls to child() - nursery.start_soon(child) - nursery.start_soon(child) -except *ValueError: - pass - -try: - try: - raise ValueError(42) - except: - try: - raise TypeError(int) - except *(Exception): - pass - 1 / 0 -except Exception as e: - exc = e - -try: - try: - raise FalsyEG("eg", [TypeError(1), ValueError(2)]) - except \ - *TypeError as e: - tes = e - raise - except * ValueError as e: - ves = e - pass -except Exception as e: - exc = e - -try: - try: - raise orig - except *(TypeError, ValueError, *OTHER_EXCEPTIONS) as e: - raise SyntaxError(3) from e -except BaseException as e: - exc = e - -try: - try: - raise orig - except\ - * OSError as e: - raise TypeError(3) from e -except ExceptionGroup as e: - exc = e - -# output - -try: - raise OSError("blah") -except* ExceptionGroup as e: - pass - - -try: - async with trio.open_nursery() as nursery: - # Make two concurrent calls to child() - nursery.start_soon(child) - nursery.start_soon(child) -except* ValueError: - pass - -try: - try: - raise ValueError(42) - except: - try: - raise TypeError(int) - except* Exception: - pass - 1 / 0 -except Exception as e: - exc = e - -try: - try: - raise FalsyEG("eg", [TypeError(1), ValueError(2)]) - except* TypeError as e: - tes = e - raise - except* ValueError as e: - ves = e - pass -except Exception as e: - exc = e - -try: - try: - raise orig - except* (TypeError, ValueError, *OTHER_EXCEPTIONS) as e: - raise SyntaxError(3) from e -except BaseException as e: - exc = e - -try: - try: - raise orig - except* OSError as e: - raise TypeError(3) from e -except ExceptionGroup as e: - exc = e