[mlir] don't match the text produced only in debug mode in Python tests
authorAlex Zinenko <zinenko@google.com>
Thu, 7 Jan 2021 10:29:17 +0000 (11:29 +0100)
committerAlex Zinenko <zinenko@google.com>
Thu, 7 Jan 2021 18:57:28 +0000 (19:57 +0100)
commit906efeec0a471be522588bd7cbb7f61459b2b437
treea269a5d383229393fdb0a33ac6a959710865d67b
parent2230bf99c712a1e9cb3a9f423998aa8727b389fc
[mlir] don't match the text produced only in debug mode in Python tests

Some Python bindings tests were using FileCheck to match parts of the
error description produced only in the debug compilation mode. Remove
these parts (but keep the main message) to ensure tests also pass when
running them in the release compilation mode.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D94221
mlir/test/Bindings/Python/ir_attributes.py
mlir/test/Bindings/Python/ir_operation.py