Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7167 closed defect (fixed)

Functional test's error handler don't catch errors from `setUp()`

Reported by: trac-ja@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: normal Keywords:
Cc: trac-ja@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When errors occured in setUp() at functional tests (i.e., "Login"), test-runner fails with native stacktrace.

  • trac/tests/functional/better_twill.py

     
    4747        """
    4848        frame = sys._getframe()
    4949        while frame:
    50             if frame.f_code.co_name == 'runTest':
     50            if frame.f_code.co_name in ('runTest', 'setUp', 'tearDown'):
    5151                testcase = frame.f_locals['self']
    5252                testname = testcase.__class__.__name__
    5353                tracdir = testcase._testenv.tracdir

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 16 years ago

Resolution: fixed
Status: newclosed

Patch applied in r6902, thanks!

comment:2 by Eli Carter, 16 years ago

Can you give an example of how to trigger this issue?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.