Skip to content

Commit

Permalink
Make unit test py>=3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Mar 17, 2022
1 parent cd0695d commit 0e0d9f8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"long_strings__edge_case",
"long_strings__regression",
"percent_precedence",
"remove_with_brackets",
]

SOURCES: List[str] = [
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0e0d9f8

Please sign in to comment.