From 4cea39a7a454562b343335a7b3e45336eed9d8b3 Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Tue, 2 Apr 2013 13:43:50 +0800 Subject: [PATCH] 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 --- nova_tests/__init__.py | 21 +++++++++++++++++++++ setup.py | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 nova_tests/__init__.py diff --git a/nova_tests/__init__.py b/nova_tests/__init__.py new file mode 100644 index 00000000..bf5b8dbb --- /dev/null +++ b/nova_tests/__init__.py @@ -0,0 +1,21 @@ +# -*- encoding: utf-8 -*- +# +# Copyright © 2013 Intel Corp. +# +# Author: Lianhao Lu +# +# 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) diff --git a/setup.py b/setup.py index f03009e8..fd7ce857 100755 --- a/setup.py +++ b/setup.py @@ -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":