Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
25
class
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
_test
Method · 0.85
Calls
no outgoing calls
Tested by
1
_test
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…