Because doctest tends to skip tests that aren't quite recognized, I think it's good to fail in those cases, consistent with our general approach that we specifically list the places there are meant to be tests, rather than relying on autodiscovery.