From: Christopher Lenz Date: Tue, 19 Jun 2007 17:17:46 +0000 (+0000) Subject: Fix frontend tests on Python 2.5, where the case of some of the output of optparse... X-Git-Tag: 1.0~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47eeca5a07028d9d7ad93d279199eb78e649466;p=thirdparty%2Fbabel.git Fix frontend tests on Python 2.5, where the case of some of the output of optparse usage has changed. --- diff --git a/babel/messages/tests/frontend.py b/babel/messages/tests/frontend.py index 3b0ebe9a..c6f48776 100644 --- a/babel/messages/tests/frontend.py +++ b/babel/messages/tests/frontend.py @@ -345,7 +345,7 @@ class CommandLineInterfaceTestCase(unittest.TestCase): usage: babel command [options] [args] babel: error: incorrect number of arguments -""", sys.stderr.getvalue()) +""", sys.stderr.getvalue().lower()) def test_help(self): try: @@ -361,9 +361,9 @@ options: -h, --help show this help message and exit commands: - extract extract messages from source files and generate a POT file + extract extract messages from source files and generate a pot file init create new message catalogs from a template -""", sys.stdout.getvalue()) +""", sys.stdout.getvalue().lower()) def test_extract_with_default_mapping(self): pot_file = os.path.join(self.datadir, 'project', 'i18n', 'temp.pot')