(self)
| 83 | self.assertEqual(a[0], 128) |
| 84 | |
| 85 | def test_clear(self): |
| 86 | a = [0] |
| 87 | def inc(): |
| 88 | a[0] += 1 |
| 89 | |
| 90 | atexit.register(inc) |
| 91 | atexit._clear() |
| 92 | atexit._run_exitfuncs() |
| 93 | |
| 94 | self.assertEqual(a[0], 0) |
| 95 | |
| 96 | def test_unregister(self): |
| 97 | a = [0] |
nothing calls this directly
no test coverage detected