summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2020-10-22 16:53:08 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2020-10-22 17:45:53 +0200
commitaf3765d4adfe12acae55285e6646d7990dc20907 (patch)
tree19be432dfca6154ac9f37bc65eaf720ace3a02c8
parentdb55397e4c705b7f5a5bf7ee5a45c9ce78aba4c4 (diff)
downloadnumpy-af3765d4adfe12acae55285e6646d7990dc20907.tar.gz
TST: Fixed the line number offset
-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 84b0ab3cc..90de4fd6d 100644
--- a/numpy/typing/tests/test_typing.py
+++ b/numpy/typing/tests/test_typing.py
@@ -156,7 +156,7 @@ def test_reveal(path):
assert "Revealed type is" in error_line
marker = lines[lineno].split("# E:")[-1].strip()
- _test_reveal(path, marker, error_line, lineno)
+ _test_reveal(path, marker, error_line, 1 + lineno)
_REVEAL_MSG = """Reveal mismatch at line {}