[Mlir-commits] [mlir] [MLIR][Python] remove `liveOperations` (PR #155114)

Maksim Levental llvmlistbot at llvm.org
Sun Aug 31 09:30:38 PDT 2025


================
@@ -907,7 +907,13 @@ def testCapsuleConversions():
         m_capsule = m._CAPIPtr
         assert '"mlir.ir.Operation._CAPIPtr"' in repr(m_capsule)
         m2 = Operation._CAPICreate(m_capsule)
-        assert m2 is m
+        assert not m2 is m
+        assert m2 == m
+        # Gc and verify destructed.
+        m = None
----------------
makslevental wrote:

Ya sure but this is just how the original test was written

https://github.com/llvm/llvm-project/pull/155114


More information about the Mlir-commits mailing list