Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 66bf83e

Browse files
committed
upgpkg: python-oslo-i18n 6.0.0-3: run tests succesfully
git-svn-id: file:///srv/repos/svn-community/svn@1447261 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 217a069 commit 66bf83e

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

Diff for: python-oslo-i18n/trunk/PKGBUILD

+11-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@
44
pkgname=python-oslo-i18n
55
pkgver=6.0.0
66
_commit=03605c2db7d034ad6776b860d4928939ae7e3594
7-
pkgrel=2
7+
pkgrel=3
88
pkgdesc="Oslo i18n library"
99
arch=('any')
1010
url="https://pypi.python.org/pypi/oslo.i18n/$pkgver"
1111
license=('Apache')
1212
depends=('python-pbr')
1313
makedepends=('git')
14-
checkdepends=('python-oslotest' 'python-oslo-config')
15-
source=("git+https://github.com/openstack/oslo.i18n.git#commit=$_commit")
16-
sha512sums=('SKIP')
14+
checkdepends=('python-oslotest' 'python-oslo-config' 'python-stestr' 'python-testscenarios')
15+
source=("git+https://github.com/openstack/oslo.i18n.git#commit=$_commit"
16+
"fix-tests-extra-warning.patch")
17+
sha512sums=('SKIP'
18+
'445b03985fafef0e4db856afe54772bb8b23b328f0a0166277c5aba9e899e2c6596737c45c11f0581fa3093853048134eac1c894227e88be463a4d0affe849e8')
19+
20+
prepare() {
21+
cd oslo.i18n
22+
patch -Np1 -i ${srcdir}/fix-tests-extra-warning.patch
23+
}
1724

1825
build() {
1926
cd oslo.i18n

Diff for: python-oslo-i18n/trunk/fix-tests-extra-warning.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Only in oslo.i18n.new/oslo_i18n: __pycache__
2+
Only in oslo.i18n.new/oslo_i18n/tests: __pycache__
3+
diff -aur oslo.i18n.new/oslo_i18n/tests/test_message.py oslo.i18n/oslo_i18n/tests/test_message.py
4+
--- oslo.i18n.new/oslo_i18n/tests/test_message.py 2023-04-18 19:52:48.773449094 +0200
5+
+++ oslo.i18n/oslo_i18n/tests/test_message.py 2023-04-18 20:03:29.083036381 +0200
6+
@@ -380,6 +380,7 @@
7+
8+
with warnings.catch_warnings(record=True) as w:
9+
warnings.simplefilter("always")
10+
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
11+
msg = _message.Message(message_with_params)
12+
msg = msg % param
13+
default_translation = message_with_params % param

0 commit comments

Comments
 (0)