Modify ↓
#7167 closed defect (fixed)
Functional test's error handler don't catch errors from `setUp()`
Reported by: | 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
47 47 """ 48 48 frame = sys._getframe() 49 49 while frame: 50 if frame.f_code.co_name == 'runTest':50 if frame.f_code.co_name in ('runTest', 'setUp', 'tearDown'): 51 51 testcase = frame.f_locals['self'] 52 52 testname = testcase.__class__.__name__ 53 53 tracdir = testcase._testenv.tracdir
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Patch applied in r6902, thanks!