o
    %if                     @  s2   d dl mZ d dlmZ d dlmZ dddZdS )    )annotations)unified_diff)Sequencefrom_collectionSequence[str]to_collectionfrom_idstrto_idreturn
str | Nonec                 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
)r   r
   diffc                 s  s    | ]}|  V  qd S )N)rstrip).0x r   E/var/www/html/corbot_env/lib/python3.10/site-packages/xdist/report.py	<genexpr>   s    z)report_collection_diff.<locals>.<genexpr>)r   formatjoinsplit)r   r   r   r
   r   error_messagemsgr   r   r   report_collection_diff   s   r   N)
r   r   r   r   r   r	   r
   r	   r   r   )
__future__r   difflibr   typingr   r   r   r   r   r   <module>   s    