[Tarantool-patches] [PATCH 3/3] tap: is_deeply ignores __pairs metamethod

Igor Munkin imun at tarantool.org
Thu Feb 20 13:57:02 MSK 2020


Oleg,

Thanks for the patch, but since we reverted the corresponding
breakage[1] I guess the changes are irrelevant. Discarding it.

On 13.02.20, olegrok at tarantool.org wrote:
> From: Oleg Babin <babinoleg at mail.ru>
> 
> After 1d85144a9b4bbbb026402848efde1ab98bf72633
> is_deeply could use __pairs metamethod when
> iterated through tables. It led to situation
> when two similar tables could be considered
> as different.
> To eliminate such situation default pairs
> was replaced with "pure" pairs that ignores
> __pairs metamethod
> 
> Follow-up #4770, #4560
> ---
>  src/lua/tap.lua           |  9 ++++++---
>  test/app-tap/tap.result   |  6 ++++--
>  test/app-tap/tap.test.lua | 24 +++++++++++++++++++++++-
>  3 files changed, 33 insertions(+), 6 deletions(-)
> 

<snipped>

> -- 
> 2.23.0
> 

[1]: https://lists.tarantool.org/pipermail/tarantool-patches/2020-February/014304.html

-- 
Best regards,
IM


More information about the Tarantool-patches mailing list