Xqt submitted this change.
[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(-)
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 = [
To view, visit change 1008499. To unsubscribe, or for help writing mail filters, visit settings.