diff --git a/pkgs/development/python-modules/oslo-i18n/default.nix b/pkgs/development/python-modules/oslo-i18n/default.nix index 9736e7ce0db..bfa60844814 100644 --- a/pkgs/development/python-modules/oslo-i18n/default.nix +++ b/pkgs/development/python-modules/oslo-i18n/default.nix @@ -32,7 +32,14 @@ buildPythonPackage rec { ]; checkPhase = '' - stestr run + runHook preCheck + + stestr run -e <(echo " + # test counts warnings which no longer matches in python 3.11 + oslo_i18n.tests.test_message.MessageTestCase.test_translate_message_bad_translation + ") + + runHook postCheck ''; pythonImportsCheck = [ "oslo_i18n" ];