Opened 7 years ago

Last modified 7 years ago

#4174 defect new

trial exits with unhandled exception when using default reporter and a test has overridden `id` somehow

Reported by: exarkun Owned by:
Priority: normal Milestone:
Component: trial Keywords:
Cc: Branch:


from twisted.trial.unittest import TestCase

class Broken(TestCase):
    def setUp(self): = None

    def test_foo(self):
        1 / 0

This failure brought to you by inheritance and the number 7.

Change History (3)

comment:1 Changed 7 years ago by jml

What's the expected behaviour?

comment:2 Changed 7 years ago by exarkun

Handle the exception, report the problem in a user-friendly way. Make it easy and obvious to the person running trial how the test code is flawed.

comment:3 Changed 6 years ago by <automation>

  • Owner jml deleted
Note: See TracTickets for help on using tickets.