o
    Zh1                     @   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)fromfile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   C/var/www/html/lang_env/lib/python3.10/site-packages/xdist/report.py	<genexpr>   s    z)report_collection_diff.<locals>.<genexpr>)r   formatjoinsplit)Zfrom_collectionZto_collectionr   r   r   error_messagemsgr   r   r   report_collection_diff   s   r   N)difflibr   r   r   r   r   r   <module>   s    