Skip to content

Commit

Permalink
Remove test_run_black
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Apr 25, 2024
1 parent b4c19bc commit d93ffe0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/trio/_tests/tools/test_gen_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,6 @@ def test_process(tmp_path: Path, imports: str) -> None:
assert excinfo.value.code == 1


@skip_lints
def test_run_black(tmp_path: Path) -> None:
"""Test that processing properly fails if black does."""
try:
import black # noqa: F401
except ImportError as error: # pragma: no cover
skip_if_optional_else_raise(error)

file = File(tmp_path / "module.py", "module")

success, _ = run_black(file, "class not valid code ><")
assert not success

success, _ = run_black(file, "import waffle\n;import trio")
assert not success


@skip_lints
def test_run_ruff(tmp_path: Path) -> None:
"""Test that processing properly fails if ruff does."""
Expand Down

0 comments on commit d93ffe0

Please sign in to comment.