packages/python/python-oslo-i18n/fix-tests-extra-warning.patch
2023-05-13 22:06:32 +02:00

14 lines
713 B
Diff

Only in oslo.i18n.new/oslo_i18n: __pycache__
Only in oslo.i18n.new/oslo_i18n/tests: __pycache__
diff -aur oslo.i18n.new/oslo_i18n/tests/test_message.py oslo.i18n/oslo_i18n/tests/test_message.py
--- oslo.i18n.new/oslo_i18n/tests/test_message.py 2023-04-18 19:52:48.773449094 +0200
+++ oslo.i18n/oslo_i18n/tests/test_message.py 2023-04-18 20:03:29.083036381 +0200
@@ -380,6 +380,7 @@
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
msg = _message.Message(message_with_params)
msg = msg % param
default_translation = message_with_params % param