(self)
| 2265 | assert f4.atexit == True |
| 2266 | |
| 2267 | def test_atexit(self): |
| 2268 | prog = ('from test.test_weakref import FinalizeTestCase;'+ |
| 2269 | 'FinalizeTestCase.run_in_child()') |
| 2270 | rc, out, err = script_helper.assert_python_ok('-c', prog) |
| 2271 | out = out.decode('ascii').splitlines() |
| 2272 | self.assertEqual(out, ['f4 foobar', 'f3 error', 'g1', 'f1 foobar']) |
| 2273 | self.assertTrue(b'ZeroDivisionError' in err) |
| 2274 | |
| 2275 | |
| 2276 | class ModuleTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected