MCPcopy Create free account
hub / github.com/apache/kudu / assertRaisesRegex

Method assertRaisesRegex

python/kudu/compat.py:103–105  ·  view source on GitHub ↗
(self, expected_exception, expected_regex, *args, **kwargs)

Source from the content-addressed store, hash-verified

101 class CompatUnitTest(unittest.TestCase):
102 @contextlib.contextmanager
103 def assertRaisesRegex(self, expected_exception, expected_regex, *args, **kwargs):
104 with self.assertRaisesRegexp(expected_exception, expected_regex, *args, **kwargs):
105 yield
106else:
107 class CompatUnitTest(unittest.TestCase):
108 pass

Calls

no outgoing calls