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 = [

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1008499?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I81fc93528b6441ad3e309c86d9aecf5e92bb3bb5
Gerrit-Change-Number: 1008499
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to