Skip to content

Commit 5ce887c

Browse files
committed
Added --no-color-output to mypy call for easier checking of report
1 parent 901cb02 commit 5ce887c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_stubgen_error.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def test_stubgen(tmp_path: Path, caplog: pytest.LogCaptureFixture) -> None:
3737
# Run mypy on the generated stub file
3838
# normal_report -> stdout, error_report -> stderr
3939
# Type errors seem to go into normal_report
40-
normal_report, error_report, exit_status = api.run([stub_file.as_posix()])
40+
normal_report, error_report, exit_status = api.run(
41+
[stub_file.as_posix(), "--no-color-output"]
42+
)
4143
print("Normal report:")
4244
print(normal_report)
4345
print("Error report:")

0 commit comments

Comments
 (0)