Ticket #29281: 29281-regression.patch

File 29281-regression.patch, 619 bytes (added by Carlton Gibson, 7 years ago)

Failing test case: trying to reverse an en URL when the current language is already nl.

  • tests/i18n/patterns/tests.py

    diff --git a/tests/i18n/patterns/tests.py b/tests/i18n/patterns/tests.py
    index 6ed2c4ffeb..9b0aa85118 100644
    a b class URLTranslationTests(URLTestCaseBase):  
    163163            self.assertEqual(translate_url('/nl/gebruikers/', 'en'), '/en/users/')
    164164            self.assertEqual(translation.get_language(), 'nl')
    165165
     166            # Regression for #29281 — Fails. No (reasonable) way to solve this (?)
     167            self.assertEqual(translate_url('/en/users/', 'nl'), '/nl/gebruikers/')
     168
    166169
    167170class URLNamespaceTests(URLTestCaseBase):
    168171    """
Back to Top