MCPcopy Index your code
hub / github.com/python/cpython / test_function

Function test_function

Lib/test/support/_hypothesis_stubs/__init__.py:25–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23
24 @functools.wraps(f)
25 def test_function(self):
26 for example_args, example_kwargs in examples:
27 if len(example_args) < 2:
28 subtest_args = example_args
29 else:
30 # subTest takes up to one positional argument.
31 # When there are more, display them as a tuple
32 subtest_args = [example_args]
33 with self.subTest(*subtest_args, **example_kwargs):
34 f(self, *example_args, **example_kwargs)
35
36 else:
37 # If we have found no examples, we must skip the test. If @example

Callers 1

withRepeatsMethod · 0.85

Calls 2

fFunction · 0.50
subTestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…