Skip to content

Commit e46d9d8

Browse files
Remove Babel requirement
Babel is not needed as requirement, remove it. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html Commit 36d46bb removed the openstack.common.gettextutils module, which used the babel package. Commit a8fb4e2 removed the babel.cfg file. It is therefore not needed to mock babel.localedata.locale_identifiers in _set_expected_languages. Change-Id: I05eaaf39c706e8ef43fe06611ea825a145caf015
1 parent 7af4d97 commit e46d9d8

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

glance/tests/unit/common/test_wsgi.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import socket
2323
from unittest import mock
2424

25-
from babel import localedata
2625
import eventlet.patcher
2726
import fixtures
2827
from oslo_concurrency import processutils
@@ -45,13 +44,6 @@ def _set_expected_languages(self, all_locales=None, avail_locales=None):
4544
if all_locales is None:
4645
all_locales = []
4746

48-
# Override localedata.locale_identifiers to return some locales.
49-
def returns_some_locales(*args, **kwargs):
50-
return all_locales
51-
52-
self.mock_object(localedata, 'locale_identifiers',
53-
returns_some_locales)
54-
5547
# Override gettext.find to return other than None for some languages.
5648
def fake_gettext_find(lang_id, *args, **kwargs):
5749
found_ret = '/glance/%s/LC_MESSAGES/glance.mo' % lang_id

test-requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# Hacking already pins down pep8, pyflakes and flake8
66
hacking>=3.0.1,<3.1.0 # Apache-2.0
77

8-
# For translations processing
9-
Babel!=2.4.0,>=2.3.4 # BSD
10-
118
# Needed for testing
129
coverage!=4.4,>=4.0 # Apache-2.0
1310
ddt>=1.0.1 # MIT

0 commit comments

Comments
 (0)