diff --git a/mlir/examples/standalone/test/python/smoketest.py b/mlir/examples/standalone/test/python/smoketest.py index bd40c65d16164..96c0f91b2a498 100644 --- a/mlir/examples/standalone/test/python/smoketest.py +++ b/mlir/examples/standalone/test/python/smoketest.py @@ -24,3 +24,12 @@ # CHECK: %[[C:.*]] = arith.constant 2 : i32 # CHECK: standalone.foo %[[C]] : i32 print(str(module)) + +from mlir_standalone.dialects import quant + +try: + from mlir_standalone.dialects import quant +except ImportError as e: + assert "symbol not found in flat namespace '_mlirTypeIsAAnyQuantizedType'" not in e.args[0] +else: + assert False, "expected exception not raised"