(self)
| 1798 | sys.monitoring.register_callback(tool, recorder.event_type, None) |
| 1799 | |
| 1800 | def test_simple(self): |
| 1801 | |
| 1802 | def func(): |
| 1803 | x = 1 |
| 1804 | for a in range(2): |
| 1805 | if a: |
| 1806 | x = 4 |
| 1807 | else: |
| 1808 | x = 6 |
| 1809 | 7 |
| 1810 | |
| 1811 | self.check_branches(func) |
| 1812 | |
| 1813 | def whilefunc(n=0): |
| 1814 | while n < 3: |
| 1815 | n += 1 # line 2 |
| 1816 | 3 |
| 1817 | |
| 1818 | self.check_branches(whilefunc) |
| 1819 | |
| 1820 | def test_except_star(self): |
| 1821 |
nothing calls this directly
no test coverage detected