(self)
| 3411 | s2.format()) |
| 3412 | |
| 3413 | def test_format_smoke(self): |
| 3414 | # For detailed tests see the format_list tests, which consume the same |
| 3415 | # code. |
| 3416 | s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')]) |
| 3417 | self.assertEqual( |
| 3418 | [' File "foo.py", line 1, in fred\n line\n'], |
| 3419 | s.format()) |
| 3420 | |
| 3421 | def test_locals(self): |
| 3422 | linecache.updatecache('/foo.py', globals()) |
nothing calls this directly
no test coverage detected