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

Method expect_failure

Lib/test/test_clinic.py:2966–2969  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

2964 return out
2965
2966 def expect_failure(self, *args):
2967 out, err, code = self.run_clinic(*args)
2968 self.assertNotEqual(code, 0, f"Unexpected success: {args=}")
2969 return out, err
2970
2971 def test_external(self):
2972 CLINIC_TEST = 'clinic.test.c'

Calls 2

run_clinicMethod · 0.95
assertNotEqualMethod · 0.80

Tested by

no test coverage detected