summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Hill <alex@hill.net.au>2016-07-24 22:00:39 +0800
committerMarkus Holtermann <info@markusholtermann.eu>2016-07-24 17:20:40 +0200
commit4e8ccb3274069832f66ff5b28ea36ebf2aa7e488 (patch)
tree7d2c75cca0c37f50402f14349b427b224123a51e /tests
parentb4fa102503076e62db13f76bbee4a3c880926676 (diff)
[1.10.x] Fixed #26945 -- Ensured that i18n_patterns returns a list
Backport of 971120778a7e7b7ebc2fc48275cca20a87580efe from master
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index 07203b341e..e1dad91cc1 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -1512,6 +1512,12 @@ class MiscTests(SimpleTestCase):
with self.settings(LANGUAGES=[('en', 'English')]):
self.assertNotEqual('pt-br', g(r))
+ def test_i18n_patterns_returns_list(self):
+ with override_settings(USE_I18N=False):
+ self.assertIsInstance(i18n_patterns([]), list)
+ with override_settings(USE_I18N=True):
+ self.assertIsInstance(i18n_patterns([]), list)
+
class ResolutionOrderI18NTests(SimpleTestCase):