We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ce8ae9 commit 97e08a4Copy full SHA for 97e08a4
onnxscript/version_converter/_version_converter_test.py
@@ -506,14 +506,11 @@ def test_version_convert_raises_on_function_node_with_ref_attribute(self):
506
)
507
508
target_version = 20
509
- with self.assertRaises(
+ with self.assertRaisesRegex(
510
version_converter._version_converter.VersionConverterError, # pylint: disable=protected-access
511
- ) as ctx:
512
- version_converter.convert_version(model, target_version=target_version)
513
- self.assertRegex(
514
- str(ctx.exception),
515
"has ref attribute, which is not supported by version converter",
516
- )
+ ):
+ version_converter.convert_version(model, target_version=target_version)
517
518
519
class VersionConverter25to26Test(unittest.TestCase):
0 commit comments