
    g
                        d dl Z de _        d dlmZ d dlZd dlmZmZ d dlm	Z	 d dl
mZ d dlZ	 d dlZej                            dd           ej                            d           n# e$ r  ed	          w xY w ej        d
          Zd Zd Zd Zd Zd Z ej        dd          d             Z ej        dd          d             ZdS )    NT)version_tuple)clear_cache	USE_CACHE)GROUND_TYPES)ARCHsympy_hypothesis_profile)deadlinezhypothesis is a required dependency to run the SymPy test suite. Install it with 'pip install hypothesis' or 'conda install -c conda-forge hypothesis'z([0-9]+)/([1-9][0-9]*)c                 \   |                      d          }|sd S t                              |          }|st          d          t	          t
          |                                          \  }}|dz
  t          |          z  |z  |t          |          z  |z  }}||k     r||d = |d |= d S )N--splitz>split must be a string of the form a/b where a and b are ints.   )	getoptionspmatch
ValueErrormapintgroupslen)configitemssplitmitstartends           J/var/www/html/ai-engine/env/lib/python3.11/site-packages/sympy/conftest.pyprocess_splitr      s    Y''E 
A 
O
 
 	
 sAHHJJDAqa%3u::%*AE

Na,?3E1uu#$$Kfuf    c                     dt           z  }|dt          z  z  }d}t          dk    rdd l}|                                }n+t          dk    r 	 ddlm} d| d	}n# t          $ r d
}Y nw xY w|dt          d|dz  }|S )Nzarchitecture: %s
zcache:        %s
 gmpyr   flint)__version__z(python-flint==)unknownzground types:  
)r   r   r   gmpy2versionr#   r$   ImportError)r   sr*   r)   r$   s        r   pytest_report_headerr-   -   s    t#A			))AGv--//		 	 	7)))))) 7666GG  	  	  	 GGG	  ALLL'''	::AHs   
A A&%A&c                     | j                             dd           s| j                             dd           r|                     dddd           d S d S )Nerrorfailedr'   zDO *NOT* COMMIT!T)redbold)statsget	write_sep)terminalreporters    r   pytest_terminal_summaryr7   @   sq    !!'400 Q4D4J4N4N$5 5 Q 	""3(:4"PPPPPQ Qr   c                 8    |                      dddd           d S )Nr   storer!   zsplit tests)actiondefaulthelp)	addoption)parsers    r   pytest_addoptionr?   G   s%    
YwOOOOOr   c                 &    t          | |           dS )zpytest hook.N)r   )r   r   s     r   pytest_collection_modifyitemsrA   K   s     &%     r   module)autousescopec                  "    t                       d S )N)r    r   r   file_clear_cacherG   Q   s    MMMMMr   c                 X   t          | j        dd          rt          j        d           d S t          | j        dd          rct	          t          j                  t	          d          k     r;t          j                            d          dk    rt          j        d           d S d S d S d S )	NdisabledFztest requirements not met.ipythonz2.6.3z-snoz0run py.test with -s or upgrade to newer version.)getattrrB   pytestskipr   r$   r   getvalue)requests    r   check_disabledrQ   V   s    w~z511 L011111	E	2	2 L &,--g0F0FFF&&t,,44KJKKKKKL L GF44r   )sys_running_pytestsympy.external.importtoolsr   rM   sympy.core.cacher   r   sympy.external.gmpyr   sympy.utilities.miscr   re
hypothesissettingsregister_profileload_profiler+   compiler   r   r-   r7   r?   rA   fixturerG   rQ   rF   r   r   <module>r_      s   



  4 4 4 4 4 4  3 3 3 3 3 3 3 3 , , , , , , % % % % % % 					(()Cd(SSS$$%?@@@@   
+	`   RZ)**  $  &Q Q QP P P! ! ! H---  .- H---	L 	L .-	L 	L 	Ls   :A* *A;