Note that upstream already released a fix for issue #1017 as part of version 5.6.0, and the most recent debci run [1] of 5.6.0-1 with python3 from experimental (python3-defaults/3.12.6-1+exp1) on sep 17th completed without error, just 2 days prior to this bug getting filed.
There are a several other upstream issues and pull requests involving (optimisations for) py3.13 such as #1059 and #1063, with a fresh pyfakefs release planned as soon as Python 3.13 itself goes final. [1]https://ci.debian.net/packages/p/python-pyfakefs/unstable/amd64/51807669/
pgp_uIJ3EkO3C.pgp
Description: OpenPGP digital signature

