Content-Length: 277189 | pFad | https://github.com/python/cpython/issues/102795

3A test_epoll.test_control_and_wait flakes from improper poll() usage · Issue #102795 · python/cpython · GitHub
Skip to content

test_epoll.test_control_and_wait flakes from improper poll() usage #102795

@kevinGC

Description

@kevinGC

Bug report

test_epoll.test_control_and_wait can flake. In the test we wait for events on two file descriptors. This is done in a single call to select.epoll's poll() function. However, it is valid for the OS to return only one event via poll() and the next via a subsequent call to poll(). This rarely happens, but it can cause the test to fail despite properly functioning polling.

Your environment

  • CPython versions tested on: 3.10.2
  • Operating system and architecture: Linux 5.19.11 and gVisor

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/102795

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy