mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40280: select: Use NULL for empty fdset (GH-31865)
wasm32-emscripten does not support exceptfds and requires NULL. Python now passes NULL instead of a fdset pointer when the input list is empty. This works fine on all platforms and might even be a tiny bit faster.
This commit is contained in:
parent
23abae621f
commit
f00ced8396
3 changed files with 8 additions and 2 deletions
|
@ -46,7 +46,7 @@ class SelectTestCase(unittest.TestCase):
|
|||
self.assertIsNot(r, x)
|
||||
self.assertIsNot(w, x)
|
||||
|
||||
@unittest.skipUnless(hasattr(os, 'popen'), "need os.popen()")
|
||||
@support.requires_fork()
|
||||
def test_select(self):
|
||||
code = textwrap.dedent('''
|
||||
import time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue