Skip to content

Commit

Permalink
[test] Permits to debug more easily 'test_allow_reexport_package' (#8347
Browse files Browse the repository at this point in the history
) (#8349)

Refs #8342

(cherry picked from commit 27a3984)

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
github-actions[bot] and Pierre-Sassoulas committed Feb 26, 2023
1 parent 0006ae9 commit e734d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/checkers/unittest_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_allow_reexport_package(capsys: CaptureFixture[str]) -> None:
exit=False,
)
output, errors = capsys.readouterr()
assert len(output.split("\n")) == 5
assert len(output.split("\n")) == 5, f"Expected 5 line breaks in:{output}"
assert (
"__init__.py:1:0: C0414: Import alias does not rename original package (useless-import-alias)"
in output
Expand Down

0 comments on commit e734d56

Please sign in to comment.