From: Felix Schwarz Date: Wed, 28 Sep 2011 10:09:35 +0000 (+0000) Subject: remove Python 2.3 conditional in test suite generation X-Git-Tag: 1.0~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4746be68aa8ba46cb5eec800da8d5bea08ff34f8;p=thirdparty%2Fbabel.git remove Python 2.3 conditional in test suite generation --- diff --git a/babel/messages/tests/catalog.py b/babel/messages/tests/catalog.py index 0b03a9b2..6d05ca74 100644 --- a/babel/messages/tests/catalog.py +++ b/babel/messages/tests/catalog.py @@ -285,10 +285,7 @@ class CatalogTestCase(unittest.TestCase): def suite(): suite = unittest.TestSuite() - if hasattr(doctest, 'ELLIPSIS'): - suite.addTest(doctest.DocTestSuite(catalog, optionflags=doctest.ELLIPSIS)) - else: - suite.addTest(doctest.DocTestSuite(catalog)) + suite.addTest(doctest.DocTestSuite(catalog, optionflags=doctest.ELLIPSIS)) suite.addTest(unittest.makeSuite(MessageTestCase)) suite.addTest(unittest.makeSuite(CatalogTestCase)) return suite