403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/gyp/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/gyp/__pycache__/common_test.cpython-311.pyc
�

�"Kb����dZddlZddlZddlZGd�dej��ZGd�dej��Zedkrej	��dSdS)z"Unit tests for the common.py file.�Nc��eZdZd�Zd�ZdS)�TestTopologicallySortedc���ddggdgdgd���fd�}|�tj�����|��gd���dS)zATest that sorting works on a valid graph with one possible order.�b�c�d��arrrc�.��t�|��S�N��tuple��node�graphs ��1/usr/lib/python3/dist-packages/gyp/common_test.py�GetEdgez3TestTopologicallySorted.test_Valid.<locals>.GetEdge����
�5��;�
�
��)r
rrrN)�assertEqual�gyp�common�TopologicallySorted�keys��selfrrs  @r�
test_Validz"TestTopologicallySorted.test_Valids�����3�Z�
��U��U�	
�
�E� � � � � ����	�j�$�$�U�Z�Z�\�\�7�;�;��������rc���dgdgdgdgd���fd�}|�tjjtjj����|��dS)z3Test that an exception is thrown on a cyclic graph.rrrr
r	c�.��t�|��Srr
rs �rrz3TestTopologicallySorted.test_Cycle.<locals>.GetEdge%rrN)�assertRaisesrr�
CycleErrorrrrs  @r�
test_Cyclez"TestTopologicallySorted.test_Cycles|����U��U��U��U�	
�
�E� � � � � ����	�j��S�Z�;��j�j�l�l�G�����rN)�__name__�
__module__�__qualname__rr"�rrrrs2�������������rrc�4�eZdZdZdZd�Zd�Zd�Zd�Zd�Z	dS)	�
TestGetFlavorz0Test that gyp.common.GetFlavor works as intended�c�(�tj|_dSr)�sys�platform�original_platform�rs r�setUpzTestGetFlavor.setUp0s�� �\�D���rc�(�|jt_dSr)r-r+r,r.s r�tearDownzTestGetFlavor.tearDown3s���)�C�L�L�Lrc��|t_|�|tj�|����dSr)r+r,rrr�	GetFlavor)r�expected�argument�params    r�assertFlavorzTestGetFlavor.assertFlavor6s5���C�L����X�s�z�3�3�E�:�:�;�;�;�;�;rc�v�|�ddi��|�ddi��|�ddi��|�ddi��|�ddi��|�d	d
i��|�d	di��|�d	d	i��dS)N�freebsd�freebsd9�	freebsd10�openbsd�openbsd5�solaris�sunos5�sunos�linux�linux2�linux3�r7r.s r�test_platform_defaultz#TestGetFlavor.test_platform_default:s������i��b�1�1�1����i��b�1�1�1����i��b�1�1�1����i��b�1�1�1����i��b�1�1�1����g��b�1�1�1����g��b�1�1�1����g��b�1�1�1�1�1rc�8�|�ddddi��dS)N�foobarrB�flavorrDr.s r�
test_paramzTestGetFlavor.test_paramDs%�����h��H�h�+?�@�@�@�@�@rN)
r#r$r%�__doc__r-r/r1r7rErIr&rrr(r(,sp������8�8���*�*�*�*�*�*�<�<�<�3�3�3�A�A�A�A�Arr(�__main__)
rJ�
gyp.commonr�unittestr+�TestCaserr(r#�mainr&rr�<module>rPs���)�(���������
�
�
�
������h�/����<A�A�A�A�A�H�%�A�A�A�8�z����(�-�/�/�/�/�/��r

Youez - 2016 - github.com/yon3zu
LinuXploit