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

Tres Seaver tseaver at palladion.com
Wed Oct 11 17:56:41 EDT 2006


-----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.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFLWiZ+gerLs4ltQ4RAls5AJ4uWRuEx3mG4QUignNAk6GAOG9LnACgipti
HwY/HqIds70ZCIecVeHpA/g=
=WmcQ
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list