The `pydiff` seems to be abandoned[*] and so it is probably a good idea to stop to use it in tests and replace it by something else. [*] no new release for more than 12 years; does not work with new Python versions because `pydiff` uses lib2to3