You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python 3.13, compiler strips indents from docstrings. See python/cpython#81283
_______________________ TestDundersUnnamedClass.test_ne ________________________
self = <tests.test_cmp.TestDundersUnnamedClass object at 0x7f8f99705280>
def test_ne(self):
"""
__ne__ docstring and qualified name should be well behaved.
"""
method = self.cls.__ne__
> assert method.__doc__.strip() == (
"Check equality and either forward a NotImplemented or\n"
" return the result negated."
)
E AssertionError: assert 'Check equality and either forward a NotImplemented or\nreturn the result negated.' == 'Check equality and either forward a NotImplemented or\n return the result negated.'
E Check equality and either forward a NotImplemented or
E - return the result negated.
E ? --------
E + return the result negated.
tests/test_cmp.py:326: AssertionError
______________________ TestDundersPartialOrdering.test_ne ______________________
self = <tests.test_cmp.TestDundersPartialOrdering object at 0x7f8f99705010>
def test_ne(self):
"""
__ne__ docstring and qualified name should be well behaved.
"""
method = self.cls.__ne__
> assert method.__doc__.strip() == (
"Check equality and either forward a NotImplemented or\n"
" return the result negated."
)
E AssertionError: assert 'Check equality and either forward a NotImplemented or\nreturn the result negated.' == 'Check equality and either forward a NotImplemented or\n return the result negated.'
E Check equality and either forward a NotImplemented or
E - return the result negated.
E ? --------
E + return the result negated.
tests/test_cmp.py:394: AssertionError
_______________________ TestDundersFullOrdering.test_ne ________________________
self = <tests.test_cmp.TestDundersFullOrdering object at 0x7f8f99704b30>
def test_ne(self):
"""
__ne__ docstring and qualified name should be well behaved.
"""
method = self.cls.__ne__
> assert method.__doc__.strip() == (
"Check equality and either forward a NotImplemented or\n"
" return the result negated."
)
E AssertionError: assert 'Check equality and either forward a NotImplemented or\nreturn the result negated.' == 'Check equality and either forward a NotImplemented or\n return the result negated.'
E Check equality and either forward a NotImplemented or
E - return the result negated.
E ? --------
E + return the result negated.
tests/test_cmp.py:466: AssertionError
The text was updated successfully, but these errors were encountered:
* Fix test_ne in test_cmp.py for Python 3.13
Compiler in Python 3.13+ strips indents from docstrings
so they need to be compared without it for new Pythons.
Fixes: #1228
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
In Python 3.13, compiler strips indents from docstrings. See python/cpython#81283
The text was updated successfully, but these errors were encountered: