(self)
| 211 | ]) |
| 212 | |
| 213 | def test_distant_exception(self): |
| 214 | def f(): |
| 215 | 1/0 |
| 216 | def g(): |
| 217 | f() |
| 218 | def h(): |
| 219 | g() |
| 220 | def i(): |
| 221 | h() |
| 222 | def j(p): |
| 223 | i() |
| 224 | f_ident = ident(f) |
| 225 | g_ident = ident(g) |
| 226 | h_ident = ident(h) |
| 227 | i_ident = ident(i) |
| 228 | j_ident = ident(j) |
| 229 | self.check_events(j, [(1, 'call', j_ident), |
| 230 | (2, 'call', i_ident), |
| 231 | (3, 'call', h_ident), |
| 232 | (4, 'call', g_ident), |
| 233 | (5, 'call', f_ident), |
| 234 | (5, 'return', f_ident), |
| 235 | (4, 'return', g_ident), |
| 236 | (3, 'return', h_ident), |
| 237 | (2, 'return', i_ident), |
| 238 | (1, 'return', j_ident), |
| 239 | ]) |
| 240 | |
| 241 | def test_generator(self): |
| 242 | def f(): |
nothing calls this directly
no test coverage detected