MCPcopy Index your code
hub / github.com/python/cpython / PopenMock

Class PopenMock

Lib/test/test_webbrowser.py:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class PopenMock(mock.MagicMock):
26
27 def poll(self):
28 return 0
29
30 def wait(self, seconds=None):
31 return 0
32
33
34@requires_subprocess()

Callers 1

_testMethod · 0.85

Calls

no outgoing calls

Tested by 1

_testMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…