Skip to content

Commit

Permalink
Fix test (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jan 28, 2023
1 parent 82291a5 commit 3925e73
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/checkers/unittest_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,11 @@ def test_allow_reexport_package(capsys: CaptureFixture[str]) -> None:
output, errors = capsys.readouterr()
assert len(output.split("\n")) == 5
assert (
"tests/regrtest_data/allow_reexport/__init__.py:1:0: C0414: "
"Import alias does not rename original package (useless-import-alias)"
"__init__.py:1:0: C0414: Import alias does not rename original package (useless-import-alias)"
in output
)
assert (
"tests/regrtest_data/allow_reexport/file.py:2:0: C0414: "
"Import alias does not rename original package (useless-import-alias)"
"file.py:2:0: C0414: Import alias does not rename original package (useless-import-alias)"
in output
)
assert len(errors) == 0
Expand All @@ -176,10 +174,9 @@ def test_allow_reexport_package(capsys: CaptureFixture[str]) -> None:
)
output, errors = capsys.readouterr()
assert len(output.split("\n")) == 3
assert "tests/regrtest_data/allow_reexport/__init__.py" not in output
assert "__init__.py" not in output
assert (
"tests/regrtest_data/allow_reexport/file.py:2:0: C0414: "
"Import alias does not rename original package (useless-import-alias)"
"file.py:2:0: C0414: Import alias does not rename original package (useless-import-alias)"
in output
)
assert len(errors) == 0

0 comments on commit 3925e73

Please sign in to comment.