def test_system_exit_within_test(self): check = SystemExitCheck() # This should not raise and should not exit self.runall([check]) stats = self.runner.stats assert 1 == len(stats.failures())
def test_system_exit_within_test(self): check = SystemExitCheck() # This should not raise and should not exit self.runner.runall([check]) stats = self.runner.stats self.assertEqual(1, stats.num_failures())
def test_system_exit_within_test(make_runner, make_cases, common_exec_ctx): # This should not raise and should not exit runner = make_runner() runner.runall(make_cases([SystemExitCheck()])) stats = runner.stats assert 1 == len(stats.failed())