diff --git a/tests/test_format.py b/tests/test_format.py index f98e73a0a07..e75590aacf1 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -79,7 +79,6 @@ "long_strings__edge_case", "long_strings__regression", "percent_precedence", - "remove_with_brackets", ] SOURCES: List[str] = [ @@ -189,6 +188,16 @@ def test_pep_570() -> None: assert_format(source, expected, minimum_version=(3, 8)) +def test_remove_with_brackets() -> None: + source, expected = read_data("remove_with_brackets") + assert_format( + source, + expected, + black.Mode(preview=True), + minimum_version=(3, 9), + ) + + @pytest.mark.parametrize("filename", PY310_CASES) def test_python_310(filename: str) -> None: source, expected = read_data(filename)