Hi Chris,

Thanks for the report.

On Mon, 4 Oct 2021 at 09:31, Chris Withers <[email protected]> wrote:
>
> Since Trac appears to be not accepting new issues, posting here before I
> forget:
>
> Reproducer:
>
>
> {{{
> from twisted.trial.unittest import TestCase
>
>
> class StatefulCleanup:
>
>      called = False
>
>      def __call__(self):
>          if self.called:
>              raise AssertionError('Called more than once')
>          self.called = True
>
>
> class TestAddCleanup(TestCase):
>
>      def setUp(self):
>          self.addCleanup(StatefulCleanup())
>
>      def testIt(self):
>          pass
> }}}
>
>
> If run with trial -u, the AssertionError will be issued.
>
> Chris
>

The ticket was created here https://twistedmatrix.com/trac/ticket/10262

It's just that a post ticket-create task was failing.

Regards
-- 
Adi Roiban
_______________________________________________
Twisted mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/twisted.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/72A3PPJV7ZBW7TL7WWMQPJDWUFG5CAS3/
Code of Conduct: https://twisted.org/conduct

Reply via email to