py3.11: unit test failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.i18n |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
Under Python 3.11, we have the below unit test failure (this is oslo.i18n 5.1.0 in Debian Unstable).
FAIL: oslo_i18n.
oslo_i18n.
-------
testtools.
File "/usr/lib/
return func(*newargs, **newkeywargs)
File "/<<PKGBUILDDIR
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.
Same issue here, the extra deprecationwarning is because of a 3.11 deprecation.
{message : DeprecationWarn ing('Use setlocale(), getencoding() and getlocale() instead'), category : 'DeprecationWar ning', filename : '/tmp/python- oslo-i18n/ trunk/src/ oslo.i18n/ oslo_i18n/ _messa oslo-i18n/ trunk/src/ oslo.i18n/ oslo_i18n/ _message. py', lineno : 173, line : None}
ge.py', lineno : 101, line : None}
{message : UserWarning("Failed to insert replacement values into translated message A message in Spanish: %s %s (Original: 'A message: %s'): not enough arguments for format string"), category
: 'UserWarning', filename : '/tmp/python-