@@ -599,16 +599,14 @@ def test10_global_ptr(self):
599599 d = gbl .get_global_pod ()
600600 assert gbl .is_global_pod (d )
601601 assert c == d
602- # TODO: in PyROOT, non-TObjects are not mem-regulated
603- #assert id(c) == id(d)
602+ assert c is d
604603
605604 e = gbl .CppyyTestPod ()
606605 e .m_int = 43
607606 e .m_double = 2.14
608607
609608 gbl .g_pod = e
610- # TODO: in PyROOT, non-TObjects are not mem-regulated
611- #assert gbl.is_global_pod(e)
609+ assert gbl .is_global_pod (e )
612610 assert gbl .g_pod .m_int == 43
613611 assert gbl .g_pod .m_double == 2.14
614612
@@ -892,14 +890,10 @@ def address_equality_test(a, b):
892890 b2 = cppyy .bind_object (a , CppyyTestData )
893891 b .m_int = 888
894892 assert b .m_int == 888
895- assert b == b2 and b .m_int == b2 .m_int
896- # TODO: in PyROOT, non-TObjects are not mem-regulated
897- #assert b is b2 # memory regulator recycles
893+ assert b is b2 and b .m_int == b2 .m_int
898894 b3 = cppyy .bind_object (cppyy .addressof (a ), CppyyTestData )
899895 assert b3 .m_int == 888
900- assert b == b3 and b .m_int == b3 .m_int
901- # TODO: in PyROOT, non-TObjects are not mem-regulated
902- #assert b is b3 # likewise
896+ assert b is b3 and b .m_int == b3 .m_int
903897
904898 address_equality_test (c .m_voidp , c2 )
905899 address_equality_test (c .get_voidp (), c2 )
0 commit comments