The computation of interval raises a ZeroDivisionError because the length of periods is 0. Closes #13671 (grafted from baf0a88808a8c5e85116ebbc7cf5f414b6bd95fc) --HG-- branch : 6.0
--HG-- branch : 6.0