By ericonr: - fix tests - add missing Pygments dependency - add optional enchant dependency Closes: #31121 [via git-merge-pr]