[Twisted-Python] Getting nice logging outputs in py.test

Jean-Paul Calderone exarkun at twistedmatrix.com
Thu Jul 4 14:43:02 MDT 2019


On Thu, Jul 4, 2019 at 1:50 PM Chris Withers <chris at withers.org> wrote:

> On 04/07/2019 14:39, Thomas Westfeld wrote:
> > Dear all,
> >
> > I am having an issue with logging of my Twisted application. I am using
> the new twisted.logger framework. The output produced by twist or twistd
> when runnning my plugin is nice.
> >
> > However when running a test suite using py.test I only get this as an
> output to stdout:
>

Are you letting pytest eat your stdout?  That's the default behavior, isn't
it?


>
> How are you running the reactor in your pytest suites? I've not found a
> sane way to do this and so would recommend sticking with trial, crufty
> and old though it feels...
>
>
What feels crufty and old about trial?  And why is "old" a negative?

Jean-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20190704/606c9ef2/attachment-0002.html>


More information about the Twisted-Python mailing list