[Zope3-checkins]
SVN: zope.testing/trunk/src/zope/testing/testrunner.py
make the profiler tests run on Python 2.4.2 and greater
Benji York
benji at zope.com
Thu Sep 29 15:19:59 EDT 2005
Log message for revision 38694:
make the profiler tests run on Python 2.4.2 and greater
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 2005-09-29 19:11:20 UTC (rev 38693)
+++ zope.testing/trunk/src/zope/testing/testrunner.py 2005-09-29 19:19:59 UTC (rev 38694)
@@ -1380,7 +1380,9 @@
optionflags=doctest.ELLIPSIS+doctest.NORMALIZE_WHITESPACE,
checker=checker)
- if not __debug__:
+ # Python <= 2.4.1 had a bug that prevented hotshot from runnint in
+ # non-optimize mode
+ if sys.version_info[:3] > (2,4,1) or __debug__:
# some Linux distributions don't include the profiling module (which
# hotshot depends on)
try:
More information about the Zope3-Checkins
mailing list