a
    4ñ»já  ã                   @  s>   d dl mZ d dlmZ d dlmZ ddddddœdd	„Zd
S )é    )Úannotations)ÚSequence)Úunified_diffzSequence[str]Ústrz
str | None)Úfrom_collectionÚto_collectionÚfrom_idÚto_idÚreturnc                 C  sP   | |krdS t | |||d�}dj||d |¡d�}d dd„ | d¡D ƒ¡}|S )z´Report 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Útofilez©Different tests were collected between {from_id} and {to_id}. The difference is:
{diff}
To see why this happens see 'Known limitations' in documentation for pytest-xdistÚ
)r   r	   Údiffc                 s  s   | ]}|  ¡ V  qd S )N)Úrstrip)Ú.0Úx© r   ú2E:\soccer\ml_env\Lib\site-packages\xdist/report.pyÚ	<genexpr>   ó    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)Ú
__future__r   Úcollections.abcr   Údifflibr   r   r   r   r   r   Ú<module>   s   