Mercurial > genshi > genshi-test
comparison genshi/filters/tests/__init__.py @ 709:a7b0d320aea4
Python 2.3 compatibility fixes for transformer and (specifically for 2.3.1) i18n.
author | athomas |
---|---|
date | Sun, 06 Apr 2008 20:52:15 +0000 |
parents | aa5762c7b7f1 |
children | 09a90feb9269 |
comparison
equal
deleted
inserted
replaced
708:49ae50aad908 | 709:a7b0d320aea4 |
---|---|
9 # | 9 # |
10 # This software consists of voluntary contributions made by many | 10 # This software consists of voluntary contributions made by many |
11 # individuals. For the exact contribution history, see the revision | 11 # individuals. For the exact contribution history, see the revision |
12 # history and logs, available at http://genshi.edgewall.org/log/. | 12 # history and logs, available at http://genshi.edgewall.org/log/. |
13 | 13 |
14 import doctest | |
14 import unittest | 15 import unittest |
15 | 16 |
16 def suite(): | 17 def suite(): |
17 from genshi.filters.tests import html, i18n, transform | 18 from genshi.filters.tests import html, i18n, transform |
18 suite = unittest.TestSuite() | 19 suite = unittest.TestSuite() |
19 suite.addTest(html.suite()) | 20 suite.addTest(html.suite()) |
20 suite.addTest(i18n.suite()) | 21 suite.addTest(i18n.suite()) |
21 suite.addTest(transform.suite()) | 22 if hasattr(doctest, 'NORMALIZE_WHITESPACE'): |
23 suite.addTest(transform.suite()) | |
22 return suite | 24 return suite |
23 | 25 |
24 if __name__ == '__main__': | 26 if __name__ == '__main__': |
25 unittest.main(defaultTest='suite') | 27 unittest.main(defaultTest='suite') |