MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / test_tests_fail_1

Method test_tests_fail_1

tests/test_test.py:25–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23class TestTests(unittest.TestCase):
24
25 def test_tests_fail_1(self):
26 SimpleTestCase = types.new_class('SimpleTestCase',
27 (BaseSimpleTestCase, tb.TestCase))
28
29 suite = unittest.TestSuite()
30 suite.addTest(SimpleTestCase('test_tests_zero_error'))
31
32 result = unittest.TestResult()
33 suite.run(result)
34
35 self.assertIn('ZeroDivisionError', result.errors[0][1])
36
37
38class TestHelpers(tb.TestCase):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected