A possible workaround is using sleep as mentioned in the ticket below, but that requires committing code to ensure we sleep before a failure. You also have to know the failing step in advance to add the sleep before it.
sleep
Workaround: pytest || sleep 1000
pytest || sleep 1000