Skip to content

test_free_threading.test_monitoring.MonitoringMisc.test_register_callback test failure #127871

@colesbury

Description

@colesbury

Bug report

Seen in https://github.com/python/cpython/actions/runs/12281871632/job/34272140528?pr=122564 (free threading + JIT).

Reported by @markshannon

======================================================================
FAIL: test_register_callback (test.test_free_threading.test_monitoring.MonitoringMisc.test_register_callback)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/test/test_free_threading/test_monitoring.py", line 219, in test_register_callback
    self.assertEqual(ref(), None)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
AssertionError: <function MonitoringMisc.register_callback.<locals>.callback at 0x200021800f0> != None

----------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions