Skip to content

Commit

Permalink
1.6.1dev: follow-up to [17771], use Locale.parse instead of `get_ne…
Browse files Browse the repository at this point in the history
…gotiated_locale` (refs #13482)

git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17772 af82e41b-90c4-0310-8c96-b1721e28e2e2
  • Loading branch information
jomae committed Apr 19, 2024
1 parent 3340d07 commit b3a2d05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trac/web/tests/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ def test_add_jquery_ui_time_format(self):

@unittest.skipUnless(has_babel, 'Babel unavailable')
def test_add_jquery_ui_available_locales(self):
from babel.core import Locale
for locale in get_available_locales():
locale = get_negotiated_locale([locale])
locale = Locale.parse(locale)
data = self._get_jquery_ui_script_data(locale)

def test_invalid_default_dateinfo_format_raises_exception(self):
Expand Down

0 comments on commit b3a2d05

Please sign in to comment.