From: Jeroen Ruigrok van der Werven Date: Thu, 8 Apr 2010 08:26:22 +0000 (+0000) Subject: Fix test to run under Python 2.3. X-Git-Tag: 1.0~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3586f60aea83c78fb309c8174b44621021bb87e;p=thirdparty%2Fbabel.git Fix test to run under Python 2.3. --- diff --git a/babel/messages/tests/catalog.py b/babel/messages/tests/catalog.py index df04d8e0..a878b099 100644 --- a/babel/messages/tests/catalog.py +++ b/babel/messages/tests/catalog.py @@ -281,7 +281,10 @@ class CatalogTestCase(unittest.TestCase): def suite(): suite = unittest.TestSuite() - suite.addTest(doctest.DocTestSuite(catalog, optionflags=doctest.ELLIPSIS)) + if hasattr(doctest, 'ELLIPSIS'): + suite.addTest(doctest.DocTestSuite(catalog, optionflags=doctest.ELLIPSIS)) + else: + suite.addTest(doctest.DocTestSuite(catalog)) suite.addTest(unittest.makeSuite(MessageTestCase)) suite.addTest(unittest.makeSuite(CatalogTestCase)) return suite