On Wed, Oct 11, 2006 at 05:56:41PM -0400, Tres Seaver wrote:
> 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
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to