diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-06-08 17:27:42 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-06-08 17:27:42 +0200 |
commit | 0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e (patch) | |
tree | b1249b7b96c908931f2c29f48f016da8be450429 /libreport/src/report-python/libreport-meh-test.py | |
parent | 7ac32c68dea1fe0c6efa6ac9bb0e8ad8716d7f7d (diff) | |
download | abrt-0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e.tar.gz abrt-0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e.tar.xz abrt-0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e.zip |
split libreport to a separate package
Diffstat (limited to 'libreport/src/report-python/libreport-meh-test.py')
-rw-r--r-- | libreport/src/report-python/libreport-meh-test.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libreport/src/report-python/libreport-meh-test.py b/libreport/src/report-python/libreport-meh-test.py new file mode 100644 index 00000000..4ef24834 --- /dev/null +++ b/libreport/src/report-python/libreport-meh-test.py @@ -0,0 +1,31 @@ +#!/bin/env python + +from meh.dump import ReverseExceptionDump +from meh.handler import * +from meh.ui.gui import * + +class Config: + def __init__(self): + self.programName = "abrt" + self.programVersion = "2.0" + self.attrSkipList = [] + self.fileList = [] + self.config_value_one = 1 + self.config_value_two = 2 + + + +#meh.makeRHHandler("crash-test-meh", "1.0", Config()) +config = Config() +intf = GraphicalIntf(None) +handler = ExceptionHandler(config, intf, ReverseExceptionDump) +handler.install(None) + + +print "handler set up, about to divide by zero" + +zero = 0 +print 1 / zero + +print "should have crashed" + |