[Zope-dev] SVN: Products.GenericSetup/trunk/Products/GenericSetup/tests/common.py Hhm, pdb?!?

Hanno Schlichting hannosch at hannosch.eu
Sun Jan 18 06:17:18 EST 2009


Tres Seaver wrote:
> Hanno Schlichting wrote:
>> Log message for revision 94810:
>>   Hhm, pdb?!?
> 
>> Changed:
>>   U   Products.GenericSetup/trunk/Products/GenericSetup/tests/common.py
> 
>> -=-
>> Modified: Products.GenericSetup/trunk/Products/GenericSetup/tests/common.py
>> ===================================================================
>> --- Products.GenericSetup/trunk/Products/GenericSetup/tests/common.py	2009-01-17 20:01:44 UTC (rev 94809)
>> +++ Products.GenericSetup/trunk/Products/GenericSetup/tests/common.py	2009-01-17 20:41:54 UTC (rev 94810)
>> @@ -53,7 +53,6 @@
>>                          for i in range( len( zipped ) )
>>                          if zipped[i][0] != zipped[i][1]
>>                      ]
>> -                import pdb; pdb.set_trace()
> 
>>              print 'Found:'
>>              print fxml
> 
> That breakpoint was inside an if block guarded by 'if debug:', which
> shouldn't be set by any "real" test.

I can put it back if you want to. I'm just accustomed to a strict
"no-pdb"-policy in checked in code. Quite some repositories even enforce
it via a post-commit hook.

Hanno



More information about the Zope-Dev mailing list