U
    ZÊ¹jr  ã                   @   s<   d dl mZ d dlmZ dd„ Zdd„ Zdd„ Zd	d
„ ZdS )é    )Úimport_module)Úwarnsc                  C   s8   ddl } tddddgidtfd�}|r4| |j ks4t‚dS )	úY
    make sure we get the right collections when it is not part of a
    larger list
    r   NÚ
matplotlibÚfromlistÚcmÚcollectionsú1.1.0©Úimport_kwargsÚmin_module_versionZcatch©r   r   ÚRuntimeErrorÚAssertionError©r   r   © r   úd/var/www/html/bwave/python/venv/lib/python3.8/site-packages/sympy/external/tests/test_importtools.pyÚtest_no_stdlib_collections   s    
 þr   c                  C   s6   ddl } tdddgidtfd�}|r2| |j ks2t‚dS )r   r   Nr   r   r   r	   r
   r   r   r   r   r   Útest_no_stdlib_collections2   s     þr   c                  C   s4   ddl } tddddgidd�}|r0| |j ks0t‚dS )	z4make sure we get the right collections with no catchr   Nr   r   r   r   r	   )r   r   )r   r   r   r   r   r   r   Útest_no_stdlib_collections3   s    
þr   c                	   C   s$   t tƒ� tddd� W 5 Q R X d S )NZmpmathz1000.0.1)r   )r   ÚUserWarningr   r   r   r   r   Ú0test_min_module_version_python3_basestring_error&   s    
r   N)Zsympy.externalr   Zsympy.testing.pytestr   r   r   r   r   r   r   r   r   Ú<module>   s
   	