If/when we start adding tests to the electrumabc_gui package, we will need to deal with this. For now, just fix the error by filtering the results returned by unittest.defaultTestLoader.discover
One solution would be to make PyQt5 a requirement for Electrum ABC even when no GUI is needed (I doubt that there is much to test in that package that does not have a hard dependency on Qt).
Depends on D14134