SIGN IN SIGN UP

Issue #25220: Fix "-m test --forever"

* Fix "-m test --forever": replace _test_forever() with self._test_forever()
* Add unit test for --forever
* Add unit test for a failing test
* Fix also some pyflakes warnings in libregrtest
V
Victor Stinner committed
9a14214aee22512f833a8d5cf8627ca45627d330
Parent: 3803114