tests: avoid a spurious failure when running inside Emacs