python-attrs / attrs

Python Classes Without Boilerplate
https://www.attrs.org/
MIT License
5.31k stars 374 forks source link

Fix test_ne in test_cmp.py for Python 3.13 #1255

Closed frenzymadness closed 8 months ago

frenzymadness commented 8 months ago

Summary

Compiler in Python 3.13+ strips indents from docstrings so they need to be compared without it for new Pythons.

Tested with 3.13.0a4

Fixes: https://github.com/python-attrs/attrs/issues/1228

Pull Request Check List

frenzymadness commented 8 months ago

I found the attr._compat module so I use it now.