Opened 16 years ago

Closed 16 years ago

#1710 defect closed fixed (fixed)

Failures can be created in a broken state

Reported by: Jean-Paul Calderone Owned by:
Priority: highest Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description

Creating a Failure with no explicit exception when sys.exc_info() returns None will produce an object that is unusable in various ways. This should not be allowed.

Change History (4)

comment:1 Changed 16 years ago by Jean-Paul Calderone

Keywords: review added
Priority: highhighest

Ready for review in broken-failures-1710

comment:2 Changed 16 years ago by radix

Keywords: review removed

Hooray unit tests

+1

comment:3 Changed 16 years ago by Jean-Paul Calderone

Resolution: fixed
Status: newclosed

(In [16775]) Merge broken-failure-1710

Author: exarkun Reviewer: radix Fixes #1710

Cause Failure to synchronously raise an exception if constructed with no exception state. Also remove the special handling of this case in the debug mode of Failure.

comment:4 Changed 11 years ago by <automation>

Owner: Jean-Paul Calderone deleted
Note: See TracTickets for help on using tickets.