()
| 178 | # Moderately expensive (spawns a subprocess), so share results when possible. |
| 179 | @cache |
| 180 | def _can_strace(): |
| 181 | res = strace_python("import sys; sys.exit(0)", |
| 182 | # --trace option needs strace 5.5 (gh-133741) |
| 183 | ["--trace=%process"], |
| 184 | check=False) |
| 185 | if res.strace_returncode == 0 and res.python_returncode == 0: |
| 186 | assert res.events(), "Should have parsed multiple calls" |
| 187 | return True |
| 188 | return False |
| 189 | |
| 190 | |
| 191 | def requires_strace(): |
no test coverage detected
searching dependent graphs…