Skip to content

Conversation

@hageboeck
Copy link
Member

The test broke when implicit object ownership was switched off in ROOT. However, this test can also break in other circumstances, because
del histogram
generally does not destroy the C++ object immediately. It used to work because only a single reference to the object was alive (which changed when trying to prepare the test for implicit object ownership off), but one cannot base a test on undocumented details of a Python implementation.

For this reason, it does not make sense to test if gDirectory (C++) contains an entry for the object that was just "del"-ed.

The test broke when implicit object ownership was switched off in ROOT.
However, this test can also break in other circumstances, because
   del histogram
generally does not destroy the C++ object immediately. It used to work
because only a single reference to the object was alive (which changed
when trying to prepare the test for implicit object ownership off), but
one cannot base a test on undocumented details of a Python implementation.

For this reason, it does not make sense to test if gDirectory (C++)
contains an entry for the object that was just "del"-ed.
@hageboeck hageboeck requested a review from vepadulano January 16, 2026 14:25
@hageboeck hageboeck self-assigned this Jan 16, 2026
@hageboeck hageboeck requested a review from dpiparo as a code owner January 16, 2026 14:25
Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thank you very much!

@github-actions
Copy link

Test Results

    22 files      22 suites   3d 14h 38m 2s ⏱️
 3 811 tests  3 810 ✅ 0 💤 1 ❌
76 733 runs  76 732 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 2f32eef.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants