403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pandas/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pandas/tests/__pycache__/test_optional_dependency.cpython-312.pyc
�

.	�gW��V�ddlZddlZddlZddlmZmZddlmZd�Z	d�Z
d�Zd�Zd�Z
y)�N)�VERSIONS�import_optional_dependencyc���d}tjt|��5}td�ddd�t	j
jt�sJ�tdd��}|�J�y#1swY�AxYw)Nz3Missing .*notapackage.* pip .* conda .* notapackage��match�notapackage�ignore��errors)�pytest�raises�ImportErrorr�
isinstance�value�__context__)r�exc_info�results   �GC:\Python312\Lib\site-packages\pandas/tests/test_optional_dependency.py�test_import_optionalrsf��A�E�	���{�%�	0�2�H�"�=�1�2��h�n�n�0�0�+�>�>�>�
'�
�h�
G�F��>��>�
2�2�s�A*�*A3c�D�tjd�td�y)N�xlrd)r�importorskipr��r�test_xlrd_version_fallbackrs��
������v�&rc��d}tj|�}d|_|tj|<|jt|d�d}tjt|��5td�ddd�tdd��}||usJ�tjt�5tdd�	�}ddd�|�J�d|_td�}||usJ�tjtd
��5tdd��ddd�tjt�5tddd��}ddd�|�J�tdd
d��}|�J�y#1swY��xYw#1swY��xYw#1swY�hxYw#1swY�DxYw)N�
fakemodule�0.9.0�1.0.0�1Pandas requires .*1.0.0.* of .fakemodule.*'0.9.0'rz0.8)�min_version�warnr
zPandas requires version '1.1.0'z1.1.0)rr!r	)�types�
ModuleType�__version__�sys�modules�setitemrrr
rr�tm�assert_produces_warning�UserWarning)�monkeypatch�name�modulerrs     r�test_bad_versionr/sy���D�
�
�
�d�
#�F� �F���C�K�K�������$��0�?�E�	���{�%�	0�1�"�<�0�1�(��%�
H�F��V����	�	#�	#�K�	0�I�+�L��H��I��>��>� �F��
'��
5�F��V����	���{�*K�	L�F�"�<�W�E�F�
�	#�	#�K�	0�
�+���W�
��
��>��>�
'��X�7��F��>��>�71�1��I�I��F�F��
�
�s0�&E�&E�3E(�"E4�E�E%�(E1�4E=c�4�d}tj|�}d|_|tj|<d}tj|�}t|||�|tj|�d|��<|j
t|d�d}tjt|��5td�ddd�tjt�5tdd	�
�}ddd��J�d|_td�}||usJ�y#1swY�UxYw#1swY�2xYw)Nrr�	submodule�.rr rzfakemodule.submoduler"r
)r#r$r%r&r'�setattrr(rrr
rrr)r*r+)r,r-r.�sub_namer1rrs       r�test_submoduler5Ds���D�
�
�
�d�
#�F� �F���C�K�K����H�� � ��*�I��F�H�i�(�(1�C�K�K�4�&��(��$�%�����$��0�?�E�	���{�%�	0�;�"�#9�:�;�
�	#�	#�K�	0�S�+�,B�6�R��S��>��>� �F��
'�(>�
?�F��Y����;�;��S�S�s�"D�D�D�Dc��d}tj|�}|tj|<|j	t
|d�t
jtd��5t|�ddd�y#1swYyxYw)NrrzCan't determine .* fakemoduler)
r#r$r&r'r(rrr
rr)r,r-r.s   r�test_no_version_raisesr7]sc���D�
�
�
�d�
#�F��C�K�K�������$��0�	���{�*I�	J�)�"�4�(�)�)�)�s�A2�2A;)r&r#r�pandas.compat._optionalrr�pandas._testing�_testingr)rrr/r5r7rrr�<module>r;s2��
��
��
��'�
#�L�2)r

Youez - 2016 - github.com/yon3zu
LinuXploit