diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-03 01:57:02 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-03 01:57:02 +0000 |
| commit | fa546d797e4b7c627c91ec3740b0f104aa30549d (patch) | |
| tree | 5118334be273b4493e8c6ceb15b523b7b5dd59cf /tests | |
| parent | 10466470c0b950b6571abf96b52c0a8254a05ed7 (diff) | |
Fixed #4796. Fixed a problem when using i18n support for the first time -- in
particular when string_concat() was the first call made. Thanks, Andy Durdin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/i18n/tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/i18n/tests.py b/tests/regressiontests/i18n/tests.py index 8a7d2bee3e..99204451e4 100644 --- a/tests/regressiontests/i18n/tests.py +++ b/tests/regressiontests/i18n/tests.py @@ -30,4 +30,12 @@ True >>> s4 = ugettext_lazy('Some other string') >>> s == s4 False + +unicode(string_concat(...)) should not raise a TypeError - #4796 + +>>> import django.utils.translation +>>> reload(django.utils.translation) +<module 'django.utils.translation' from ...> +>>> unicode(django.utils.translation.string_concat("dja", "ngo")) +u'django' """ |
