[3.7] bpo-33612: Remove PyThreadState_Clear() assertion (GH-7069) by miss-islington · Pull Request #7074 · python/cpython

@vstinner @miss-islington

bpo-25612, bpo-33612: Remove an assertion from PyThreadState_Clear()
which failed at Python shutdown or on fork if a thread was running a
generator.
(cherry picked from commit b6dccf5)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner