As you can see in the linked issue it seems it was an incompatibility between the version of Python and PyFakeFS.
In the end it was a Fedora packaging bug because that pyfakefs version was not compatible with Python 3.13. Thanks in advance for helping out. -- https://mail.python.org/mailman/listinfo/python-list