Skip to content

Commit

Permalink
One last final fix for 0ad7684. Tested on py3 and py2
Browse files Browse the repository at this point in the history
  • Loading branch information
honzakral committed Feb 23, 2013
1 parent 0a341ab commit bfd4a71
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/regressiontests/i18n/tests.py
Expand Up @@ -957,8 +957,7 @@ def test_localized_language_info(self):
self.assertEqual(li['bidi'], False) self.assertEqual(li['bidi'], False)


def test_unknown_language_code(self): def test_unknown_language_code(self):
with self.assertRaisesRegexp(KeyError, "Unknown language code xx."): six.assertRaisesRegex(self, KeyError, "Unknown language code '?xx'?.", get_language_info, 'xx-xx')
get_language_info('xx')


def test_unknown_only_country_code(self): def test_unknown_only_country_code(self):
li = get_language_info('de-xx') li = get_language_info('de-xx')
Expand All @@ -968,8 +967,7 @@ def test_unknown_only_country_code(self):
self.assertEqual(li['bidi'], False) self.assertEqual(li['bidi'], False)


def test_unknown_language_code_and_country_code(self): def test_unknown_language_code_and_country_code(self):
with self.assertRaisesRegexp(KeyError, "Unknown language code xx-xx and xx."): six.assertRaisesRegex(self, KeyError, "Unknown language code '?xx-xx'? and '?xx'?.", get_language_info, 'xx-xx')
get_language_info('xx-xx')




class MultipleLocaleActivationTests(TestCase): class MultipleLocaleActivationTests(TestCase):
Expand Down

0 comments on commit bfd4a71

Please sign in to comment.