(line)
| 802 | |
| 803 | |
| 804 | def _skip_doctest(line): |
| 805 | # NumPy docstring contains cursor and comment only example |
| 806 | stripped = line.strip() |
| 807 | if stripped == ">>>" or stripped.startswith(">>> #"): |
| 808 | return line |
| 809 | elif ">>>" in stripped and "+SKIP" not in stripped: |
| 810 | if "# doctest:" in line: |
| 811 | return f"{line}, +SKIP" |
| 812 | else: |
| 813 | return f"{line} # doctest: +SKIP" |
| 814 | else: |
| 815 | return line |
| 816 | |
| 817 | |
| 818 | def skip_doctest(doc): |
no outgoing calls
no test coverage detected
searching dependent graphs…