From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case tests the functionality of the ABRT Python 3 exception handler. |setup=Install will-crash |actions= # Ensure the package is installe...")
 
No edit summary
 
Line 3: Line 3:
|setup=Install will-crash
|setup=Install will-crash
|actions=
|actions=
# Ensure the package is installed: {{command|sudo yum install abrt-addon-python3}}
# Ensure the package is installed: {{command|sudo dnf install abrt-addon-python3}}
# Generate an uncaught python exception: {{command|will_python3_raise}}
# Generate an uncaught python exception: {{command|will_python3_raise}}
# A python traceback should be generated at the command line:
# A python traceback should be generated at the command line:

Latest revision as of 11:52, 10 April 2015

Description

This test case tests the functionality of the ABRT Python 3 exception handler.

Setup

Install will-crash

How to test

  1. Ensure the package is installed: sudo dnf install abrt-addon-python3
  2. Generate an uncaught python exception: will_python3_raise
  3. A python traceback should be generated at the command line:
Will raise.
Traceback (most recent call last):
  File "/bin/will_python3_raise", line 3, in <module>
    0/0
ZeroDivisionError: division by zero

Expected Results

  1. ABRT should catch the traceback, and if you inspect the report via gnome-abrt, the trace in report window should be the same as in the terminal where you executed the command
  2. The ABRT plugin should not cause any unintended behaviour in python scripts when installed