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

Method test_stop

Lib/test/test_unittest/test_result.py:61–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 # run should be aborted by setting the TestResult's shouldStop
60 # attribute to True."
61 def test_stop(self):
62 result = unittest.TestResult()
63
64 result.stop()
65
66 self.assertEqual(result.shouldStop, True)
67
68 # "Called when the test case test is about to be run. The default
69 # implementation simply increments the instance's testsRun counter."

Callers

nothing calls this directly

Calls 2

stopMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected