Posting this here because the code in question lives in zope.testing...

After accidentally nuking my mxODBCZopeDA installation simply by running
"bin/zopectl test" in a zope 2.9 instance, I quickly concluded:
There is no "bug". is behaving exactly as designed.  Stale
bytecode causes "spurious test failures due to finding compiled modules
where source modules have been deleted." Therefore, we should delete it
by default.

But this conflicts with third parties being able to deliver bytecode
instead of source, which is a standard python feature (if not common in
the zope world). Since we can't tell the difference between "stale" and
"we never had source in the first place", deleting bytecode is arguably
surprising and overly invasive.

I guess it comes down to choosing the lesser of two evils.  Which is
worse? Confusing test errors caused by stale bytecode, or a test run
having the power to break your instance with the default options?
I don't see a third path.

ideas? opinions?


Paul Winkler
Zope3-dev mailing list

Reply via email to