Check the line number and function co_name.
(self)
| 309 | (msg, self.expect_set_no, result)) |
| 310 | |
| 311 | def check_lno_name(self): |
| 312 | """Check the line number and function co_name.""" |
| 313 | s = len(self.expect) |
| 314 | if s > 1: |
| 315 | lineno = self.lno_abs2rel() |
| 316 | self.check_equal(self.expect[1], lineno, 'Wrong line number') |
| 317 | if s > 2: |
| 318 | self.check_equal(self.expect[2], self.frame.f_code.co_name, |
| 319 | 'Wrong function name') |
| 320 | |
| 321 | def check_expect_max_size(self, size): |
| 322 | if len(self.expect) > size: |
no test coverage detected