scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

ENH: more robust detection of printed arrays #157

Closed ev-br closed 2 months ago

ev-br commented 2 months ago

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.