MCPcopy
hub / github.com/django/django / addSubTest

Method addSubTest

django/test/runner.py:321–330  ·  view source on GitHub ↗
(self, test, subtest, err)

Source from the content-addressed store, hash-verified

319 super().addFailure(test, err)
320
321 def addSubTest(self, test, subtest, err):
322 # Follow Python's implementation of unittest.TestResult.addSubTest() by
323 # not doing anything when a subtest is successful.
324 if err is not None:
325 # Call check_picklable() before check_subtest_picklable() since
326 # check_picklable() performs the tblib check.
327 self.check_picklable(test, err)
328 self.check_subtest_picklable(test, subtest)
329 self.events.append(("addSubTest", self.test_index, subtest, err))
330 super().addSubTest(test, subtest, err)
331
332 def addSuccess(self, test):
333 self.events.append(("addSuccess", self.test_index))

Callers

nothing calls this directly

Calls 4

check_picklableMethod · 0.95
appendMethod · 0.45
addSubTestMethod · 0.45

Tested by

no test coverage detected