MCPcopy Create free account
hub / github.com/wal-e/wal-e / invoke

Function invoke

tests/test_piper_low_mem.py:60–66  ·  view source on GitHub ↗
(max_tries)

Source from the content-addressed store, hash-verified

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:

Callers 1

test_advanced_shimFunction · 0.85

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected