[ 
https://issues.apache.org/jira/browse/BEAM-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16174158#comment-16174158
 ] 

Sarah Walters edited comment on BEAM-2970 at 9/21/17 2:48 AM:
--------------------------------------------------------------

Spoke with robertwb over email and agreed that a contains_in_any_order function 
is a more appropriate way to address this issue.


was (Author: sarahwalters):
Spoke with robertwb over email and decided that a contains_in_any_order 
function is a more appropriate way to address this issue.

> Add comparator function to equal_to
> -----------------------------------
>
>                 Key: BEAM-2970
>                 URL: https://issues.apache.org/jira/browse/BEAM-2970
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Sarah Walters
>            Assignee: Ahmet Altay
>            Priority: Minor
>
> The equal_to function provided by testing/util.py 
> (https://github.com/apache/beam/blob/master/sdks/python/apache_beam/testing/util.py#L54)
>  assumes that the actual and expected lists can be sorted using Python's 
> sorted method (which relies on the < operator) and compared using the == 
> operator.
> If this isn't the case, equal_to sometimes reports False incorrectly, when 
> the expected and actual lists are in different orders.
> Add a comparator function to equal_to in order to allow callers to define a 
> total order.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to