summaryrefslogtreecommitdiff
path: root/numpy/typing/tests/test_typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/typing/tests/test_typing.py')
-rw-r--r--numpy/typing/tests/test_typing.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py
index cba1dc1be..709eda7a6 100644
--- a/numpy/typing/tests/test_typing.py
+++ b/numpy/typing/tests/test_typing.py
@@ -114,9 +114,10 @@ def test_reveal(path):
])
with open(path) as fin:
- lines = fin.readlines()
+ lines = fin.read().replace('*', '').split("\n")
- for error_line in stdout.split("\n"):
+ stdout_list = stdout.replace('*', '').split("\n")
+ for error_line in stdout_list:
error_line = error_line.strip()
if not error_line:
continue