Adpated to nova's gettext changes.
Resolve the failure of nova_notifier unit test due to the gettext changes in nova. This is part of the blueprint gettext-i18n-issue. Change-Id: Ie3fcbbe9f3c902c2c40c0d3c22bb2f999bb04006
This commit is contained in:
parent
1816a982fe
commit
4cea39a7a4
21
nova_tests/__init__.py
Normal file
21
nova_tests/__init__.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright © 2013 Intel Corp.
|
||||||
|
#
|
||||||
|
# Author: Lianhao Lu <lianhao.lu@intel.com>
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
import gettext
|
||||||
|
|
||||||
|
gettext.install('nova', unicode=True)
|
3
setup.py
3
setup.py
@ -66,7 +66,8 @@ setuptools.setup(
|
|||||||
packages=setuptools.find_packages(exclude=['bin',
|
packages=setuptools.find_packages(exclude=['bin',
|
||||||
'tests',
|
'tests',
|
||||||
'tests.*',
|
'tests.*',
|
||||||
'*.tests']),
|
'*.tests',
|
||||||
|
'nova_tests']),
|
||||||
cmdclass=common_setup.get_cmdclass(),
|
cmdclass=common_setup.get_cmdclass(),
|
||||||
package_data={
|
package_data={
|
||||||
"ceilometer":
|
"ceilometer":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user