Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_free_threading.test_monitoring.MonitoringMisc.test_register_callback test failure #127871

Closed
colesbury opened this issue Dec 12, 2024 · 2 comments
Labels
tests Tests in the Lib/test dir topic-free-threading topic-JIT type-bug An unexpected behavior, bug, or error

Comments

@colesbury
Copy link
Contributor

colesbury commented Dec 12, 2024

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

----------------------------------------------------------------------
@colesbury colesbury added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir topic-free-threading topic-JIT labels Dec 12, 2024
@colesbury
Copy link
Contributor Author

I can't reproduce the failure in a non-JIT free threading build.

@colesbury
Copy link
Contributor Author

The bug doesn't exist in main. It's limited to the relevant PR.

@colesbury colesbury closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-free-threading topic-JIT type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant