[Zope3-dev] Re: zope.testing.testrunner: issue with remove_stale_bytecode

Paul Winkler pw_lists at slinkp.com
Thu Oct 12 17:07:14 EDT 2006


On Wed, Oct 11, 2006 at 05:56:41PM -0400, Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jim Fulton wrote:
> > Wichert Akkerman wrote:
> >> Previously Andrew Bennetts wrote:
> >>> The real problem as you noted in your original message is that
> >>> there's no way to
> >>> distinguish between a pyc file that is only intended to be used as a
> >>> cache of
> >>> bytecode for a py file, and a pyc file that is intended to be used
> >>> standalone.
> >>
> >> Isn't the existing or non-existing of a corresponding .py file a good
> >> indication?
> > 
> > No, because you may have intended to remove the module.
> 
> Marking the directories containing the sourceless .pyc files as readonly
> would be a reasonable workaround:  if your forgot the '-k', the
> testrunner would just whine and halt.

Good point. Thanks, Tres.

I think Chris' idea might have merit too, but I don't really have time
to hack on testrunner.  
For now, I'm just going to run tests with a wrapper script.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope3-dev mailing list