'Ensure that a NULL PyObject* is handled gracefully'

def test_NULL_ptr(self):

    (gdb_repr, gdb_output) = self.get_gdb_repr('id(42)', cmds_after_breakpoint=['set    variable    v=0', 'backtrace'])
    self.assertEqual(gdb_repr, '0x0')
