Skip to content
2 changes: 1 addition & 1 deletion bindings/pyroot/pythonizations/test/numbadeclare.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def fn1(x):

self.assertTrue(hasattr(fn1, "__cpp_wrapper__"))
self.assertTrue(type(fn1.__cpp_wrapper__) == str)
self.assertEqual(sys.getrefcount(fn1.__cpp_wrapper__), 2)
self.assertEqual(sys.getrefcount(fn1.__cpp_wrapper__), 3)
Copy link
Member

Choose a reason for hiding this comment

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

Why are we even testing this? I believe it's not necessary and as your commit message rightly says, fragile. Let's just remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, I'm not familiar with the tests.

Right now things are quite stable with only this little change of the reference value, but if you agree that it can be removed I'm happy to do this as soon as the test fails somewhere again!


self.assertTrue(hasattr(fn1, "__py_wrapper__"))
self.assertTrue(type(fn1.__py_wrapper__) == str)
Expand Down