tests: Make patching in pygtkcompat reversible