Update pytest exception for the sphinx extension

The extension needs sphinx, which may not be installed in CI