1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25295 -- Restored 'no active translation' after language override

Thanks David Nelson Adamec for the report and Tim Graham for the review.
This commit is contained in:
Claude Paroz
2015-08-21 14:09:29 +02:00
parent 4ce433e811
commit 9324935c3e
3 changed files with 8 additions and 1 deletions

View File

@@ -76,6 +76,9 @@ class TranslationTests(SimpleTestCase):
self.assertEqual(get_language(), 'de')
with translation.override(None):
self.assertEqual(get_language(), None)
with translation.override('pl'):
pass
self.assertEqual(get_language(), None)
self.assertEqual(get_language(), 'de')
finally:
deactivate()