I had to add a timeout on tests in b30e592, because all versions before 5.2 hang in some tests that play with TTY. It seems related to Github actions environment: see actions/runner#241.
I could not find a better workaround, so this basically means all versions before 5.2 are untested for now...