Fix compatibility with Twisted 25 (#13502) (#13531)
As discussed in https://github.com/pytest-dev/pytest/pull/13502, the fix for compatibility with Twisted 25+ is simpler. Therefore, it makes sense to implement both fixes (for Twisted 24 and Twisted 25) in parallel. This way, we can eventually drop support for Twisted <25 and keep only the simpler workaround.
In addition, the `unittestextras` tox environment has been replaced with dedicated test environments for `asynctest`, `Twisted 24`, and `Twisted 25`.
Fixes #13497
(cherry picked from commit 01dce85a89eb0b3e881303784267f14b94d9691f)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>