File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed
mlir/test/python/dialects Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -586,9 +586,18 @@ def testCustomAttribute():
586586 try :
587587 TestAttr (42 )
588588 except TypeError as e :
589- assert "__init__(): incompatible function arguments. The following argument types are supported" in str (e )
590- assert "__init__(self, cast_from_attr: mlir._mlir_libs._mlir.ir.Attribute) -> None" in str (e )
591- assert "Invoked with types: mlir._mlir_libs._mlirPythonTestNanobind.TestAttr, int" in str (e )
589+ assert (
590+ "__init__(): incompatible function arguments. The following argument types are supported"
591+ in str (e )
592+ )
593+ assert (
594+ "__init__(self, cast_from_attr: mlir._mlir_libs._mlir.ir.Attribute) -> None"
595+ in str (e )
596+ )
597+ assert (
598+ "Invoked with types: mlir._mlir_libs._mlirPythonTestNanobind.TestAttr, int"
599+ in str (e )
600+ )
592601 else :
593602 raise
594603
@@ -627,9 +636,18 @@ def testCustomType():
627636 try :
628637 TestType (42 )
629638 except TypeError as e :
630- assert "__init__(): incompatible function arguments. The following argument types are supported" in str (e )
631- assert "__init__(self, cast_from_type: mlir._mlir_libs._mlir.ir.Type) -> None" in str (e )
632- assert "Invoked with types: mlir._mlir_libs._mlirPythonTestNanobind.TestType, int" in str (e )
639+ assert (
640+ "__init__(): incompatible function arguments. The following argument types are supported"
641+ in str (e )
642+ )
643+ assert (
644+ "__init__(self, cast_from_type: mlir._mlir_libs._mlir.ir.Type) -> None"
645+ in str (e )
646+ )
647+ assert (
648+ "Invoked with types: mlir._mlir_libs._mlirPythonTestNanobind.TestType, int"
649+ in str (e )
650+ )
633651 else :
634652 raise
635653
You can’t perform that action at this time.
0 commit comments