B
    |?Xc1                 @   s   d dl mZ dd ZdS )    )unified_diffc             C   sP   | |krdS t | |||d}dj||d|d}ddd |dD }|S )zReport the collected test difference between two nodes.

    :returns: detailed message describing the difference between the given
    collections, or None if they are equal.
    N)ZfromfileZtofilezDifferent tests were collected between {from_id} and {to_id}. The difference is:
{diff}
To see why this happens see Known limitations in documentation
)from_idto_iddiffc             s   s   | ]}|  V  qd S )N)rstrip).0x r
   +lib/python3.7/site-packages/xdist/report.py	<genexpr>   s    z)report_collection_diff.<locals>.<genexpr>)r   formatjoinsplit)Zfrom_collectionZto_collectionr   r   r   Zerror_messagemsgr
   r
   r   report_collection_diff   s    r   N)Zdifflibr   r   r
   r
   r
   r   <module>   s   