[Zope-Checkins] SVN: Zope/trunk/buildout.cfg Only reset the warnings filter to default in Python 2.7

Hanno Schlichting hannosch at hannosch.eu
Sat Aug 14 13:05:11 EDT 2010


Log message for revision 115680:
  Only reset the warnings filter to default in Python 2.7
  

Changed:
  U   Zope/trunk/buildout.cfg

-=-
Modified: Zope/trunk/buildout.cfg
===================================================================
--- Zope/trunk/buildout.cfg	2010-08-14 15:26:09 UTC (rev 115679)
+++ Zope/trunk/buildout.cfg	2010-08-14 17:05:11 UTC (rev 115680)
@@ -23,8 +23,9 @@
 [test]
 recipe = zc.recipe.testrunner
 initialization =
+    import sys
     import warnings
-    warnings.simplefilter('default')
+    if sys.version_info >= (2, 7): warnings.simplefilter('default')
 eggs = Zope2
 
 



More information about the Zope-Checkins mailing list