From Fedora Project Wiki

Revision as of 13:44, 20 August 2009 by Mnowak (talk | contribs) (Created page with '{{QA/Test_Case |description=Check that the ''abrt'' handles Python exceptions. |actions= Configure ''abrt.conf'' so '''Python''' addon is enabled. <pre>EnabledPlugins = Python</p...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Check that the abrt handles Python exceptions.


How to test

Configure abrt.conf so Python addon is enabled.

EnabledPlugins = Python

Having some reporter might be useful too

Python = Logger, Mailx

Restart service

service abrt restart

Find some .py file in system originally installed via RPM; e.g. /usr/share/doc/smolt-1.?/lite2my.py from smolt package.

cp /usr/share/doc/smolt-1.?/lite2my.py ~

Edit the file /usr/share/doc/smolt-1.?/lite2my.py to contain some invalid Python code

#!/usr/bin/python
"11" + 11

Run it in terminal like this

python /usr/share/doc/smolt-1.?/lite2my.py

Get it back :)

cp lite2my.py /usr/share/doc/smolt-1.?/lite2my.py

Expected Results

  1. Python traceback should be generated
  2. ABRT catches it, check the report via abrt-gui whether the trace in report window is the same as in terminal