summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-11-26 15:21:47 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2021-11-26 15:21:47 +0100
commit1f709cac3f8c06d452a89765f054a2efc5daaf59 (patch)
tree0ac9ecc271292082841bc16b1ec021a47e8cf859 /numpy
parent423d56bbb1301b5f1aaef6bd9c597873088e0d49 (diff)
downloadnumpy-1f709cac3f8c06d452a89765f054a2efc5daaf59.tar.gz
TST: Strip overload/protocol suggestions from reported mypy errors
Diffstat (limited to 'numpy')
-rw-r--r--numpy/typing/tests/test_typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py
index ff0940302..bb3914434 100644
--- a/numpy/typing/tests/test_typing.py
+++ b/numpy/typing/tests/test_typing.py
@@ -136,7 +136,7 @@ def test_fail(path: str) -> None:
output_mypy = OUTPUT_MYPY
assert path in output_mypy
for error_line in output_mypy[path]:
- error_line = _strip_filename(error_line)
+ error_line = _strip_filename(error_line).split("\n", 1)[0]
match = re.match(
r"(?P<lineno>\d+): (error|note): .+$",
error_line,