On Tue, Nov 29, 2022, at 07:21, i...@markopacak.com wrote:
> The debate is whether np.testing.asset_equal should support 
> collections.Sequence objects. 

assert list(sequence1) == list(sequence2)

should do the trick, and also handles int vs float and nan comparisons.

> What is the general view on adding support in testing for Sequence objects?

If it's a straightforward change that doesn't impact the NumPy test suite, it's 
probably fine. Let's see what the others say.

Stéfan
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to