Your IP : 216.73.216.196


Current Path : /opt/alt/python310/lib64/python3.10/test/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/test/__pycache__/test_doctest2.cpython-310.opt-2.pyc

o

0�io	�@sj	ddlZddlZejjdkre�d��Gdd�de�ZGdd�dej�Zddl	Te
d	kr3e��dSdS)
�N�zCannot test docstrings with -O2c@sdeZdZ	dd�Zdd�ZGdd�de�Zdd�Zd	d
�Ze	eedd�Z
ed
d��Ze
dd��ZdS)�CcC�dS�N���selfrr�9/opt/alt/python310/lib64/python3.10/test/test_doctest2.py�__init__!�z
C.__init__cC�	dS)NZ42rrrrr	�__str__(sz	C.__str__c@seZdZ	dd�ZdS)zC.DcCrrrrrrr	�nested6rz
C.D.nestedN)�__name__�
__module__�__qualname__rrrrr	�D/srcCs
	|jSr�Z_xrrrr	�getx<szC.getxcCs	||_dSrr)r�valuerrr	�setxEs
zC.setxzi        >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print(c.x)  # 15
        -12
        )�doccCr)Ni�rrrrr	�statmU�zC.statmcCs	|Srr)�cls�valrrr	�clsmarzC.clsmN)rrrr
r
�objectrrr�property�x�staticmethodr�classmethodrrrrr	rs

		
rc@seZdZdd�ZdS)�TestcCs`ddl}ddl}d}|�|jt�\}}|r|�d||f�||kr.|�d||f�dSdS)Nr�z%d of %d doctests failedz expected %d tests to run, not %d)�doctest�sysZtestmod�modulesrZfail)rr$r%ZEXPECTED�f�trrr	�test_testmodos�zTest.test_testmodN)rrrr)rrrr	r"nsr")�*�__main__)r%Zunittest�flags�optimizeZSkipTestrrZTestCaser"r$r�mainrrrr	�<module>s

[
�