Skip to content

Commit

Permalink
Remove test_run_black (#2993)
Browse files Browse the repository at this point in the history
* Remove `test_run_black`

* Remove now-unnecessary import
  • Loading branch information
A5rocks committed Apr 28, 2024
1 parent 3645831 commit e1e3eff
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/trio/_tests/tools/test_gen_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
create_passthrough_args,
get_public_methods,
process,
run_black,
run_linters,
run_ruff,
)
Expand Down Expand Up @@ -123,23 +122,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 e1e3eff

Please sign in to comment.