[Mlir-commits] [mlir] [mlir][test] Fix filecheck annotation typos [2/n] (PR #93476)

Benjamin Maxwell llvmlistbot at llvm.org
Tue May 28 13:44:24 PDT 2024


MacDue wrote:

Here's a fix for `attributes.py` too:

```diff
diff --git a/mlir/test/python/ir/attributes.py b/mlir/test/python/ir/attributes.py
index dbd6bad05e01..6c1ac88f3226 100644
--- a/mlir/test/python/ir/attributes.py
+++ b/mlir/test/python/ir/attributes.py
@@ -514,7 +514,7 @@ def testDictAttr():
 
         a = DictAttr.get(dict_attr)
 
-        # CHECK attr: {integerattr = 42 : i32, stringattr = "string"}
+        # CHECK: attr: {integerattr = 42 : i32, stringattr = "string"}
         print("attr:", a)
 
         assert len(a) == 2
@@ -546,7 +546,7 @@ def testDictAttr():
         else:
             assert False, "expected IndexError on accessing an out-of-bounds attribute"
 
-        # CHECK "empty: {}"
+        # CHECK: empty: {}
         print("empty: ", DictAttr.get())
```

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


More information about the Mlir-commits mailing list