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

Method test_select_mutated

Lib/test/test_select.py:85–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 support.is_emscripten, "Emscripten cannot select a fd multiple times."
84 )
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
94 def test_disallow_instantiation(self):
95 support.check_disallow_instantiation(self, type(select.poll()))

Callers

nothing calls this directly

Calls 3

FClass · 0.70
assertEqualMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected