Spaces:
Sleeping
Sleeping
Download fix_test.py from Leon4gr45/nodepad-hypotheses: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/Leon4gr45/nodepad-hypotheses/resolve/main/fix_test.py
- Command line
-
hf download hf://spaces/Leon4gr45/nodepad-hypotheses/fix_test.py
-
curl -L -o fix_test.py https://huggingface.co/spaces/Leon4gr45/nodepad-hypotheses/resolve/main/fix_test.py
255 Bytes
| import sys | |
| log = sys.stdin.read() | |
| # Let's find the test failure by line number | |
| lines = log.split("\n") | |
| for i, line in enumerate(lines): | |
| if "not ok 48" in line: | |
| for j in range(max(0, i-5), min(len(lines), i+15)): | |
| print(lines[j]) | |