MCPcopy
hub / github.com/PaddlePaddle/PaddleFormers / wrapper

Function wrapper

tests/testing_utils.py:89–91  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

87def assert_raises(Error=AssertionError):
88 def assert_raises_error(func):
89 def wrapper(self, *args, **kwargs):
90 with self.assertRaises(Error):
91 func(self, *args, **kwargs)
92
93 return wrapper
94

Callers

nothing calls this directly

Calls 5

infoMethod · 0.80
decodeMethod · 0.45
getMethod · 0.45
itemsMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected