diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-11-26 15:21:47 +0100 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-11-26 15:21:47 +0100 |
commit | 1f709cac3f8c06d452a89765f054a2efc5daaf59 (patch) | |
tree | 0ac9ecc271292082841bc16b1ec021a47e8cf859 /numpy | |
parent | 423d56bbb1301b5f1aaef6bd9c597873088e0d49 (diff) | |
download | numpy-1f709cac3f8c06d452a89765f054a2efc5daaf59.tar.gz |
TST: Strip overload/protocol suggestions from reported mypy errors
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/typing/tests/test_typing.py | 2 |
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, |