Open befeleme opened 3 weeks ago
Unfortunately 3.13 testing for the main
branch is currently blocked by some of our dependencies, so I'm waiting on that to proceed.
I don't plan to test 23.2.3 on 3.12, it'll be 24.1.0.
Here's the PR: https://github.com/python-attrs/cattrs/pull/543
3/4 of the failures are likely caused by this difference between Python 3.12 and 3.13:
>>> from dataclasses import dataclass
>>> @dataclass
... class a:
... a: float
...
>>> nan = float('nan')
>>> nan == nan # on both
False
>>> a(nan) == a(nan) # on 3.12
True
>>> a(nan) == a(nan) # on 3.13
False
I believe this might be related to https://github.com/python/cpython/pull/104904
I've reported https://github.com/python/cpython/issues/120645
The new behavior looks more correct to me.
Interestingly, on 3.12:
(nan,) == (nan,)
Very surprised by this.
I think I fixed the nan issues on the tin/3.13
branch.
Description
I'm trying to build cattrs as RPM for Fedora Linux 41 with Python 3.13.0b2. 4 tests fail with two types of failures. See traceback below.
What I Did