MCPcopy Create free account
hub / github.com/numpy/numpy / test_success

Function test_success

numpy/typing/tests/test_typing.py:147–153  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

145@pytest.mark.skipif(NO_MYPY, reason="Mypy is not installed")
146@pytest.mark.parametrize("path", get_test_cases(PASS_DIR))
147def test_success(path) -> None:
148 # Alias `OUTPUT_MYPY` so that it appears in the local namespace
149 output_mypy = OUTPUT_MYPY
150 if path in output_mypy:
151 msg = "Unexpected mypy output\n\n"
152 msg += "\n".join(_strip_filename(v)[1] for v in output_mypy[path])
153 raise AssertionError(msg)
154
155
156@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

_strip_filenameFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected