X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/882d8795c6ff65c02f2657e596391748d1b6b7f5:/tests/data/cases/preview_context_managers_autodetect_38.py..refs/heads/master:/.vim/bundle/black/tests/data/cases/static/git-favicon.png diff --git a/tests/data/cases/preview_context_managers_autodetect_38.py b/tests/data/cases/preview_context_managers_autodetect_38.py deleted file mode 100644 index 25217a4..0000000 --- a/tests/data/cases/preview_context_managers_autodetect_38.py +++ /dev/null @@ -1,47 +0,0 @@ -# flags: --preview -# This file doesn't use any Python 3.9+ only grammars. - - -# Make sure parens around a single context manager don't get autodetected as -# Python 3.9+. -with (a): - pass - - -with \ - make_context_manager1() as cm1, \ - make_context_manager2() as cm2, \ - make_context_manager3() as cm3, \ - make_context_manager4() as cm4 \ -: - pass - - -with mock.patch.object( - self.my_runner, "first_method", autospec=True -) as mock_run_adb, mock.patch.object( - self.my_runner, "second_method", autospec=True, return_value="foo" -): - pass - - -# output -# This file doesn't use any Python 3.9+ only grammars. - - -# Make sure parens around a single context manager don't get autodetected as -# Python 3.9+. -with a: - pass - - -with make_context_manager1() as cm1, make_context_manager2() as cm2, make_context_manager3() as cm3, make_context_manager4() as cm4: - pass - - -with mock.patch.object( - self.my_runner, "first_method", autospec=True -) as mock_run_adb, mock.patch.object( - self.my_runner, "second_method", autospec=True, return_value="foo" -): - pass