Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

One last final fix for 0ad7684. Tested on py3 and py2

  • Loading branch information...
commit bfd4a71d419c9c811b0f1db5b2734153f7b8e3ed 1 parent 0a341ab
@HonzaKral HonzaKral authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 tests/regressiontests/i18n/tests.py
View
6 tests/regressiontests/i18n/tests.py
@@ -957,8 +957,7 @@ def test_localized_language_info(self):
self.assertEqual(li['bidi'], False)
def test_unknown_language_code(self):
- with self.assertRaisesRegexp(KeyError, "Unknown language code xx."):
- get_language_info('xx')
+ six.assertRaisesRegex(self, KeyError, "Unknown language code '?xx'?.", get_language_info, 'xx-xx')
def test_unknown_only_country_code(self):
li = get_language_info('de-xx')
@@ -968,8 +967,7 @@ def test_unknown_only_country_code(self):
self.assertEqual(li['bidi'], False)
def test_unknown_language_code_and_country_code(self):
- with self.assertRaisesRegexp(KeyError, "Unknown language code xx-xx and xx."):
- get_language_info('xx-xx')
+ six.assertRaisesRegex(self, KeyError, "Unknown language code '?xx-xx'? and '?xx'?.", get_language_info, 'xx-xx')
class MultipleLocaleActivationTests(TestCase):
Please sign in to comment.
Something went wrong with that request. Please try again.