]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
remove Python 2.3 conditional in test suite generation
authorFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Wed, 28 Sep 2011 10:09:35 +0000 (10:09 +0000)
committerFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Wed, 28 Sep 2011 10:09:35 +0000 (10:09 +0000)
babel/messages/tests/catalog.py

index 0b03a9b22a780a611a13bfc34243d8ab3ae76cdc..6d05ca7409c7f02308ca8dfb6011d520c15f5a05 100644 (file)
@@ -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