As in Bug #1629978, while I'm sure the upstream patch is an improvement, I haven't checked if it addresses all instances of the underlying issue.
*** Bug 1629978 has been marked as a duplicate of this bug. ***
I created https://src.osci.redhat.com/rpms/python/pull-request/1
The fix doesn't add a new test. It's hard to reproduce the bug: it requires to get an I/O error on one specific C function. I suggest to only run sanity checks.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.