[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py testrunner-profiling-cprofiler.txt needs both cProfile and pstats. Debian

Marius Gedminas marius at pov.lt
Fri Jul 13 04:58:25 EDT 2007


Log message for revision 77805:
  testrunner-profiling-cprofiler.txt needs both cProfile and pstats.  Debian
  splits pstats into a separate package, so the existence of cProfile doesn't
  mean it will work.
  
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-13 08:56:16 UTC (rev 77804)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-13 08:58:24 UTC (rev 77805)
@@ -2115,6 +2115,7 @@
                 )
         try:
             import cProfile
+            import pstats
         except ImportError:
             pass
         else:



More information about the Zope3-Checkins mailing list