Fix the doctest of xarray failing on python 3.8

Merged Yannick DAYER requested to merge fix-doctest into master

Merge request reports