Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  The test only fails for the decorated `deprecated_func_docstring_arg2` 
function:
  
    D:\pwb\GIT\core>py -3.13 pwb.py tools_deprecate_tests -v 
DeprecatorTestCase.test_deprecated_function_docstring
    tests: max_retries reduced from 15 to 1
    test_deprecated_function_docstring 
(__main__.DeprecatorTestCase.test_deprecated_function_docstring)
    Test @deprecated docstring modification. ...
      test_deprecated_function_docstring 
(__main__.DeprecatorTestCase.test_deprecated_function_docstring) 
(function='deprecated_func_docstring_arg2')
    Test @deprecated docstring modification. ... FAIL
    
    ======================================================================
    FAIL: test_deprecated_function_docstring 
(__main__.DeprecatorTestCase.test_deprecated_function_docstring) 
(function='deprecated_func_docstring_arg2')
    Test @deprecated docstring modification.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "D:\pwb\GIT\core\tests\tools_deprecate_tests.py", line 321, in 
test_deprecated_function_docstring
        self.assertEqual(rv.__doc__, doc)
        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
    AssertionError: '\nDEPRECATED.\n\n:param foo: Foo. DEPRECATED.\n' != '\n    
DEPRECATED.\n\n    :param foo: Foo. DEPRECATED.\n    '
    
    - DEPRECATED.
    +     DEPRECATED.
    ? ++++
    
    - :param foo: Foo. DEPRECATED.
    +     :param foo: Foo. DEPRECATED.
    ? ++++
    -
    +
    
    
    ----------------------------------------------------------------------
    Ran 1 test in 0.002s
    
    FAILED (failures=1)
  
  The lines are no longer indented for the doc string. I guess Python 3.13 does 
right but the older do not.

TASK DETAIL
  https://phabricator.wikimedia.org/T359069

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org

Reply via email to