Old-style numpy format, [ 0 1 2 ] was adding whitespace after the opening bracket. This was throwing off the attempt at reinserting the commas, which was trying to eval [, 0, 1, 2, ] instead of [0, 1, 2]. Thus the checker was falling back to the (whitespace-sensitive) vanilla doctest.
Old-style numpy format,
[ 0 1 2 ]
was adding whitespace after the opening bracket. This was throwing off the attempt at reinserting the commas, which was trying to eval[, 0, 1, 2, ]
instead of[0, 1, 2]
. Thus the checker was falling back to the (whitespace-sensitive) vanilla doctest.