Fedora have decided to disable the failing part of that test.[1] Python docs for the tested function now state "Changed in version 3.9: This method now accepts zero for k."[2]
[1] https://src.fedoraproject.org/rpms/python-random2/blob/master/f/python-random2.spec#_39 [2] https://docs.python.org/3/library/random.html#random.getrandbits