(self)
| 441 | |
| 442 | @patch("black.dump_to_file", dump_to_stderr) |
| 443 | def test_python315(self) -> None: |
| 444 | source_path = get_case_path("cases", "python315") |
| 445 | _, source, expected = read_data_from_file(source_path) |
| 446 | actual = fs(source) |
| 447 | self.assertFormatEqual(expected, actual) |
| 448 | if sys.version_info >= (3, 15): |
| 449 | black.assert_equivalent(source, actual) |
| 450 | black.assert_stable(source, actual, DEFAULT_MODE) |
| 451 | self.invokeBlack([str(source_path), "--target-version", "py315", "--fast"]) |
| 452 | |
| 453 | def test_tab_comment_indentation(self) -> None: |
| 454 | contents_tab = "if 1:\n\tif 2:\n\t\tpass\n\t# comment\n\tpass\n" |
nothing calls this directly
no test coverage detected