(self, val, exp_repr=None)
| 53 | self.assertTrue(BREAKPOINT_FN in gdb_output) |
| 54 | |
| 55 | def assertGdbRepr(self, val, exp_repr=None): |
| 56 | # Ensure that gdb's rendering of the value in a debugged process |
| 57 | # matches repr(value) in this process: |
| 58 | gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') |
| 59 | if not exp_repr: |
| 60 | exp_repr = repr(val) |
| 61 | self.assertEqual(gdb_repr, exp_repr, |
| 62 | ('%r did not equal expected %r; full output was:\n%s' |
| 63 | % (gdb_repr, exp_repr, gdb_output))) |
| 64 | |
| 65 | @support.requires_resource('cpu') |
| 66 | def test_int(self): |
no test coverage detected