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:
Lianhao Lu 2013-04-02 13:43:50 +08:00
parent 1816a982fe
commit 4cea39a7a4
2 changed files with 23 additions and 1 deletions

21
nova_tests/__init__.py Normal file
View 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)

View File

@ -66,7 +66,8 @@ setuptools.setup(
packages=setuptools.find_packages(exclude=['bin',
'tests',
'tests.*',
'*.tests']),
'*.tests',
'nova_tests']),
cmdclass=common_setup.get_cmdclass(),
package_data={
"ceilometer":