Broken rst doctest in cosmology

Any ideas why this is broken?

@aconley, @astrofrog