Mercurial > babel > old > mirror
annotate babel/tests/__init__.py @ 536:9facabfe91d0
catch exception if environment contains an invalid locale setting (fixes #200)
author | fschwarz |
---|---|
date | Fri, 11 Mar 2011 16:20:57 +0000 |
parents | e93f68837913 |
children |
rev | line source |
---|---|
3 | 1 # -*- coding: utf-8 -*- |
2 # | |
532 | 3 # Copyright (C) 2007-2011 Edgewall Software |
3 | 4 # All rights reserved. |
5 # | |
6 # This software is licensed as described in the file COPYING, which | |
7 # you should have received as part of this distribution. The terms | |
8 # are also available at http://babel.edgewall.org/wiki/License. | |
9 # | |
10 # This software consists of voluntary contributions made by many | |
11 # individuals. For the exact contribution history, see the revision | |
12 # history and logs, available at http://babel.edgewall.org/log/. | |
13 | |
14 import unittest | |
15 | |
16 def suite(): | |
413 | 17 from babel.tests import core, dates, localedata, numbers, plural, \ |
18 support, util | |
56
27d55a07c897
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents:
28
diff
changeset
|
19 from babel.messages import tests as messages |
3 | 20 suite = unittest.TestSuite() |
21 suite.addTest(core.suite()) | |
22 suite.addTest(dates.suite()) | |
28
695884591af6
* Reduce size of locale data pickles by only storing the data provided by each locale itself, and merging inherited data at runtime.
cmlenz
parents:
14
diff
changeset
|
23 suite.addTest(localedata.suite()) |
62 | 24 suite.addTest(messages.suite()) |
3 | 25 suite.addTest(numbers.suite()) |
413 | 26 suite.addTest(plural.suite()) |
62 | 27 suite.addTest(support.suite()) |
3 | 28 suite.addTest(util.suite()) |
29 return suite | |
30 | |
31 if __name__ == '__main__': | |
32 unittest.main(defaultTest='suite') |