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

2006-10-13 Thread Paul Winkler
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
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



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

2006-10-11 Thread Tres Seaver
-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  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://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-

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com