Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ F
Class
F
Lib/test/test_select.py:87–90 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
85
def
test_select_mutated(self):
86
a = []
87
class
F:
88
def
fileno(self):
89
del a[-1]
90
return
sys.__stdout__.fileno()
91
a[:] = [F()] * 10
92
self.assertEqual(select.select([], a, []), ([], a[:5], []))
93
Callers
1
test_select_mutated
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_select_mutated
Method · 0.56