GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_os.TimerfdTests fails on FreeBSD 14 and 15: missing select.epoll() · Issue #110697 · python/cpython

test_os.TimerfdTests fails on FreeBSD 14 and 15: missing select.epoll() #110697

New issue
Copy link
New issue
Copy link
Closed
Closed
test_os.TimerfdTests fails on FreeBSD 14 and 15: missing select.epoll()#110697
Copy link

Description

@vstinner
vstinner
opened on Oct 11, 2023
Issue body actions

os.timerfd_create() is documented to be available only on Linux, but it's always available on FreeBSD 14.

Problem: the test uses epoll() which is not available on FreeBSD. The test should be redesigned with selectors.DefaultSelector to become portable.

os.timerfd_create() was added recently to the main branch by PR gh-108382: see issue gh-108277.

cc @m-tmatma

Logs:

======================================================================
ERROR: test_timerfd_epoll (test.test_os.TimerfdTests.test_timerfd_epoll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/test/test_os.py", line 4099, in test_timerfd_epoll
    ep = select.epoll()
         ^^^^^^^^^^^^
AttributeError: module 'select' has no attribute 'epoll'. Did you mean: 'poll'?

======================================================================
ERROR: test_timerfd_ns_epoll (test.test_os.TimerfdTests.test_timerfd_ns_epoll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/test/test_os.py", line 4255, in test_timerfd_ns_epoll
    ep = select.epoll()
         ^^^^^^^^^^^^
AttributeError: module 'select' has no attribute 'epoll'. Did you mean: 'poll'?

FreeBSD 14 build: https://buildbot.python.org/all/#/builders/1232/builds/208

Linked PRs

  • gh-110697: test_os TimerfdTests uses selectors #110789
  • gh-110697: Use CLOCK_RES in test_os.TimerfdTests #111529
Reacted by Masaru Tsuchiyama

Activity

  1. vstinner
    added 3 commits that reference this issue on Oct 12, 2023

    pythongh-110697: test_os TimerfdTests uses selectors

    e4e2bf5

    pythongh-110697: test_os TimerfdTests uses selectors

    574b597

    gh-110697: test_os TimerfdTests uses selectors (#110789)

    8f07b6e
  2. m-tmatma commented on Oct 15, 2023

    @m-tmatma
    m-tmatma
    on Oct 15, 2023
    Contributor
    More actions

    @vstinner
    You already fixed by #110789?

  3. vstinner commented on Oct 15, 2023

    @vstinner
    vstinner
    on Oct 15, 2023
    MemberAuthor
    More actions

    @vstinner: You already fixed by #110789?

    Yes. I was waiting for FreeBSD14 and FreeBSD15 builders: both are now green.

    • https://buildbot.python.org/all/#/builders/1232
    • https://buildbot.python.org/all/#/builders/1238
  4. vstinner
    closed this as completedon Oct 15, 2023
  5. vstinner
    added 3 commits that reference this issue on Oct 30, 2023

    pythongh-110697: test_os TimerfdTests uses CLOCK_RES

    bce9085

    pythongh-110697: Use CLOCK_RES_NS in test_os.TimerfdTests

    a581f52

    gh-110697: Use CLOCK_RES in test_os.TimerfdTests (#111529)

    7b153d1
  6. FullteaR
    added a commit that references this issue on Nov 3, 2023

    pythongh-110697: Use CLOCK_RES in test_os.TimerfdTests (python#111529)

    2933533
  7. aisk
    added 2 commits that reference this issue on Feb 11, 2024

    pythongh-110697: test_os TimerfdTests uses selectors (python#110789)

    ba2f782

    pythongh-110697: Use CLOCK_RES in test_os.TimerfdTests (python#111529)

    377f60c
  8. Glyphack
    added 2 commits that reference this issue on Sep 2, 2024

    pythongh-110697: test_os TimerfdTests uses selectors (python#110789)

    a6b5927

    pythongh-110697: Use CLOCK_RES in test_os.TimerfdTests (python#111529)

    0ef0b93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.