We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87cbc6c commit 417ed76Copy full SHA for 417ed76
mlir/test/python/ir/diagnostic_handler.py
@@ -2,7 +2,9 @@
2
3
import gc
4
from mlir.ir import *
5
-from mlir._mlir_libs._mlirPythonTestNanobind import test_diagnostics_with_errors_and_notes
+from mlir._mlir_libs._mlirPythonTestNanobind import (
6
+ test_diagnostics_with_errors_and_notes,
7
+)
8
9
10
def run(f):
@@ -224,6 +226,7 @@ def callback2(d):
224
226
# CHECK: CALLBACK1: foobar
225
227
loc.emit_error("foobar")
228
229
+
230
# CHECK-LABEL: TEST: testBuiltInDiagnosticsHandler
231
@run
232
def testBuiltInDiagnosticsHandler():
@@ -235,4 +238,3 @@ def testBuiltInDiagnosticsHandler():
235
238
# CHECK: created error
236
239
# CHECK: MLIRPythonCAPI
237
240
print(e)
-
0 commit comments