]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110697: test_os TimerfdTests uses selectors (#110789)
authorVictor Stinner <vstinner@python.org>
Fri, 13 Oct 2023 14:20:18 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 14:20:18 +0000 (16:20 +0200)
commit8f07b6e4e3c5e5c549b8c2c7d14a89b2563e6b9e
tree743fd99ba30f8384a3d4a6dde89d7babc66a5473
parenta7e2a10a85bb597d3bb8f9303214bd0524fa54c3
gh-110697: test_os TimerfdTests uses selectors (#110789)

Replace select.epoll() with selectors.DefaultSelector to support
FreeBSD 14 and newer.

* Merge common code between test_timerfd_epoll()
  test_timerfd_ns_epoll().
* Replace "_ = func()" with "func()".
* Add TimerfdTests.read_count_signaled() method.
Lib/test/test_os.py