[Mlir-commits] [mlir] [mlir][python][wip] remove `liveOperations`	(PR #92631)
    Jacques Pienaar 
    llvmlistbot at llvm.org
       
    Sun Jun 23 22:35:08 PDT 2024
    
    
  
================
@@ -102,27 +102,16 @@ def testRoundtripBinary():
 def testModuleOperation():
     ctx = Context()
     module = Module.parse(r"""module @successfulParse {}""", ctx)
-    assert ctx._get_live_module_count() == 1
     op1 = module.operation
-    assert ctx._get_live_operation_count() == 1
-    live_ops = ctx._get_live_operation_objects()
-    assert len(live_ops) == 1
-    assert live_ops[0] is op1
-    live_ops = None
     # CHECK: module @successfulParse
     print(op1)
 
     # Ensure that operations are the same on multiple calls.
     op2 = module.operation
-    assert ctx._get_live_operation_count() == 1
-    assert op1 is op2
+    assert op1 == op2
----------------
jpienaar wrote:
Does is and == differ here?
https://github.com/llvm/llvm-project/pull/92631
    
    
More information about the Mlir-commits
mailing list