Skip to content

Commit 55a5f20

Browse files
committed
format
1 parent 23610b5 commit 55a5f20

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

mlir/test/python/dialects/python_test.py

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)