MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_BdbQuit

Function test_BdbQuit

testing/test_unittest.py:1143–1158  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1141
1142
1143def test_BdbQuit(pytester: Pytester) -> None:
1144 pytester.makepyfile(
1145 test_foo="""
1146 import unittest
1147
1148 class MyTestCase(unittest.TestCase):
1149 def test_bdbquit(self):
1150 import bdb
1151 raise bdb.BdbQuit()
1152
1153 def test_should_not_run(self):
1154 pass
1155 """
1156 )
1157 reprec = pytester.inline_run()
1158 reprec.assertoutcome(failed=1, passed=1)
1159
1160
1161def test_exit_outcome(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected