> Another option, though, is to rewrite the ERT tests in question: e.g. to
> bind vc-handled-backends to nil, or to some other value if the presence
> of certain VC programs is known and expected in advance.
Test in question does not need or use Git in any way. It fails only because Emacs under it decides to die with an exception when Git is not installed, `debug-on-error' happens to be t (because of ERT, test itself doesn't even set it explicitly) and current directory is structured in a particular way.
It feels conceptually wrong to require all tests that open files to rebind `vc-handled-backends'. This is not what they are testing. It also depends on knowing particular Emacs quirks (which I, for example, didn't know one day earlier). If those were to change in some way, would all tests everywhere need to accomodate?
Paul