Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1008499?usp=email )
Change subject: [fix] Ignore DeprecatorTestCase.test_deprecated_function_docstring ......................................................................
[fix] Ignore DeprecatorTestCase.test_deprecated_function_docstring
Ignore DeprecatorTestCase.test_deprecated_function_docstring of tools_deprecate_tests for Python 3.13.
Bug: T359069 Change-Id: I81fc93528b6441ad3e309c86d9aecf5e92bb3bb5 --- M tests/tools_deprecate_tests.py 1 file changed, 18 insertions(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/tools_deprecate_tests.py b/tests/tools_deprecate_tests.py index 930e328..2cf1f87 100755 --- a/tests/tools_deprecate_tests.py +++ b/tests/tools_deprecate_tests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Tests for deprecation tools.""" # -# (C) Pywikibot team, 2014-2022 +# (C) Pywikibot team, 2014-2024 # # Distributed under the terms of the MIT license. # @@ -11,6 +11,7 @@ from contextlib import suppress
from pywikibot.tools import ( + PYTHON_VERSION, add_full_name, deprecate_arg, deprecated, @@ -18,6 +19,7 @@ remove_last_args, ) from tests.aspects import DeprecationTestCase +from tests.utils import expected_failure_if
@add_full_name @@ -297,6 +299,8 @@ self.assertOneDeprecationParts(__name__ + '.deprecated_func_instead', 'baz')
+ # deprecated_func_docstring_arg2 fails with Python 3.13 + @expected_failure_if(PYTHON_VERSION >= (3, 13)) def test_deprecated_function_docstring(self): """Test @deprecated docstring modification.""" testcases = [
pywikibot-commits@lists.wikimedia.org