Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Align tests to work after psf#966
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Florczak committed Oct 2, 2019
1 parent 36881c6 commit b2be34c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ def test_invalid_include_exclude(self) -> None:
for option in ["--include", "--exclude"]:
self.invokeBlack(["-", option, "**()(!!*)"], exit_code=2)

@event_loop(close=False)
def test_check_shebang(self) -> None:
test_path = THIS_DIR / "data" / "shebang_tests"
empty_config = ["--config", str(THIS_DIR / "empty.toml")]
Expand All @@ -1448,6 +1449,7 @@ def test_check_shebang(self) -> None:
self.assertNotIn(str(test_path / "decoding_error"), output)
self.assertIn("\n1 file would be reformatted", output)

@event_loop(close=False)
def test_custom_shebang_regex(self) -> None:
test_path = THIS_DIR / "data" / "shebang_tests"
empty_config = ["--config", str(THIS_DIR / "empty.toml")]
Expand Down

0 comments on commit b2be34c

Please sign in to comment.