(self)
| 173 | assert "assert False" in source[5] |
| 174 | |
| 175 | def test_tb_entry_str(self): |
| 176 | try: |
| 177 | assert False |
| 178 | except AssertionError: |
| 179 | exci = ExceptionInfo.from_current() |
| 180 | pattern = r" File '.*test_code.py':\d+ in test_tb_entry_str\n assert False" |
| 181 | entry = str(exci.traceback[0]) |
| 182 | assert re.match(pattern, entry) |
| 183 | |
| 184 | |
| 185 | class TestReprFuncArgs: |
nothing calls this directly
no test coverage detected