issue 3650; doctest dependency check