[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/scripts/tests.py Fixed a spurious test failure on Python 2.4 dur to changes in optparse
Jim Fulton
jim at zope.com
Fri Apr 24 18:38:12 EDT 2009
Log message for revision 99481:
Fixed a spurious test failure on Python 2.4 dur to changes in optparse
output.
Changed:
U ZODB/trunk/src/ZEO/scripts/tests.py
-=-
Modified: ZODB/trunk/src/ZEO/scripts/tests.py
===================================================================
--- ZODB/trunk/src/ZEO/scripts/tests.py 2009-04-24 22:37:50 UTC (rev 99480)
+++ ZODB/trunk/src/ZEO/scripts/tests.py 2009-04-24 22:38:12 UTC (rev 99481)
@@ -15,11 +15,17 @@
$Id$
"""
-import unittest
-from zope.testing import doctest
+import re, unittest
+from zope.testing import doctest, renormalizing
def test_suite():
return unittest.TestSuite((
- doctest.DocFileSuite('zeopack.test'),
+ doctest.DocFileSuite(
+ 'zeopack.test',
+ checker=renormalizing.RENormalizing([
+ (re.compile('usage: Usage: '), 'Usage: '), # Py 2.4
+ (re.compile('options:'), 'Options:'), # Py 2.4
+ ])
+ ),
))
More information about the Zodb-checkins
mailing list