(max_tries)
| 58 | oomtimes.n = old_n |
| 59 | |
| 60 | def invoke(max_tries): |
| 61 | with open(os.devnull, 'w') as devnull: |
| 62 | popen = piper.PopenShim(sleep_time=0, max_tries=max_tries) |
| 63 | proc = popen(['python', '--version'], |
| 64 | stdout=devnull, stderr=devnull) |
| 65 | if proc: |
| 66 | proc.wait() |
| 67 | |
| 68 | if oomtimes.n >= 1: |
| 69 | with pytest.raises(OSError) as e: |
no test coverage detected