8000 TST: Provide a more useful exception message if the `pass` tests fail · numpy/numpy@b3e44cc · GitHub
[go: up one dir, main page]

Skip to content 6601

Commit b3e44cc

Browse files
author
Bas van Beek
committed
TST: Provide a more useful exception message if the pass tests fail
1 parent 92d6159 commit b3e44cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/typing/tests/test_typing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def get_test_cases(directory):
8989
def test_success(path):
9090
# Alias `OUTPUT_MYPY` so that it appears in the local namespace
9191
output_mypy = OUTPUT_MYPY
92-
assert path not in output_mypy
92+
if path in output_mypy:
93+
raise AssertionError("\n".join(v for v in output_mypy[path].values()))
9394

9495

9596
@pytest.mark.slow

0 commit comments

Comments
 (0)
0