scipy / scipy_doctest

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

Doctests won't fail with extra items at the end of lists #161

Closed luxedo closed 2 months ago

luxedo commented 2 months ago

With the following input I don't get any errors when running pytest --pyargs scipy_doctest

Passes when it shouldn't

>>> [1, 2, 3]
[1, 2, 3, 4]

Fails as expected

>>> [1, 2, 3]
[4, 1, 2, 3]