[Twisted-Python] disturbing trial exceptions

Thomas Hervé therve at free.fr
Fri Dec 14 05:34:35 MST 2007


Le Friday 14 December 2007 13:00:26 Markus Schiltknecht, vous avez écrit :
> Hi,
>
> since my last svn update of twisted, some strange errors started popping
> up when testing my package with trial. I've tracked down the exact
>
> revision with which the errors started to appear:
> > ------------------------------------------------------------------------
> > r21907 | therve | 2007-11-20 20:32:56 +0100 (Tue, 20 Nov 2007) | 9 lines
> >
> > Merge test-plugins-not-shared-942
> >
> > Author: therve
> > Reviewers: exarkun, jml, glyph
> > Fixes #942
> >
> > Fix twisted.test.test_plugin so that it doesn't use twisted.plugins
> > anymore, but create temporary plugins beneath _trial_temp instead.
> >
> > ------------------------------------------------------------------------
>
> The first exception is:
>    exceptions.AttributeError: 'module' object has no attribute 'running'
>
> As the errors are from seemingly dynamically generated code (at least I
> could only find .pyc files, no source), I didn't try to investigate
> further.

You have to remove the pyc files in the plugins (and probably the dropin.cache 
file too), because the source files have been removed by this revision.

The responsability for this problem is not clear yet, but in this case it was 
for a good reason :).

-- 
Thomas




More information about the Twisted-Python mailing list