From 8edbe4daaa0948b3a718e376b9c4d2d847e4e2c1 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 20 Jan 2011 15:12:42 +0100 Subject: python: fix SEGV on crash_data().get("nonexistent") Signed-off-by: Denys Vlasenko --- src/report-python/test_crash_data2 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 src/report-python/test_crash_data2 (limited to 'src/report-python/test_crash_data2') diff --git a/src/report-python/test_crash_data2 b/src/report-python/test_crash_data2 new file mode 100755 index 00000000..2594f863 --- /dev/null +++ b/src/report-python/test_crash_data2 @@ -0,0 +1,10 @@ +#!/usr/bin/python + +from report import * + +cd = crash_data() +cd.add("foo", "bar") + +print "foo:", cd.get("foo") +print "nonexistent:", cd.get("nonexistent") +print "done" -- cgit