Revert "Tests fail if building Sphinx documentation reports warnings."

This reverts commit a8f0a0b1623382618df5132d6532224519f97e2c.