summaryrefslogtreecommitdiffstats
path: root/test_gdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_gdb.py')
-rw-r--r--test_gdb.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test_gdb.py b/test_gdb.py
index d7cd237..82cef5d 100644
--- a/test_gdb.py
+++ b/test_gdb.py
@@ -191,6 +191,11 @@ print foo''')
'Unexpected gdb representation: %r\n%s' % \
(gdb_repr, gdb_output))
+ def test_NULL_ptr(self):
+ 'Ensure that a NULL PyObject* is handled gracefully'
+ self.assertSane('print 42',
+ 'set variable op=0')
+
def test_NULL_ob_type(self):
self.assertSane('print 42',
'set op->ob_type=0')