Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.225.117.155
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_doctest2.pyo
�
?��cc@s�dZddlZddlZddlmZejjdkrRejd��ndefd��YZ	d�Z
dd	lTed
kr�e
�ndS(u�A module to test whether doctest recognizes some 2.2 features,
like static and class methods.

>>> print 'yup'  # 1
yup

We include some (random) encoded (utf-8) text in the text surrounding
the example.  It should be ignored:

ЉЊЈЁЂ

i����N(ttest_supportisCannot test docstrings with -O2tCcBs{eZdZd�Zd�Zdefd��YZd�Zd�Ze	eedd�Z
ed	��Ze
d
��ZRS(u�Class C.

    >>> print C()  # 2
    42


    We include some (random) encoded (utf-8) text in the text surrounding
    the example.  It should be ignored:

        ЉЊЈЁЂ

    cCsdS(s:C.__init__.

        >>> print C() # 3
        42
        N((tself((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pyt__init__#tcCsdS(s.
        >>> print C() # 4
        42
        t42((R((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pyt__str__*stDcBseZdZd�ZRS(sIA nested D class.

        >>> print "In D!"   # 5
        In D!
        cCsdS(s7
            >>> print 3 # 6
            3
            N((R((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pytnested8R(t__name__t
__module__t__doc__R(((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pyR1scCs|jS(sf
        >>> c = C()    # 7
        >>> c.x = 12   # 8
        >>> print c.x  # 9
        -12
        (t_x(R((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pytgetx>scCs
||_dS(sl
        >>> c = C()     # 10
        >>> c.x = 12    # 11
        >>> print c.x   # 12
        -12
        N(R(Rtvalue((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pytsetxGstdocsh        >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print c.x  # 15
        -12
        cCsdS(s�
        A static method.

        >>> print C.statm()    # 16
        666
        >>> print C().statm()  # 17
        666
        i�((((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pytstatmWs
cCs|S(s�
        A class method.

        >>> print C.clsm(22)    # 18
        22
        >>> print C().clsm(23)  # 19
        23
        ((tclstval((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pytclsmcs
(R	R
RRRtobjectRR
RtpropertytxtstaticmethodRtclassmethodR(((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pyRs		
					cCsWddlm}d}tj|�\}}||krStjd||f��ndS(Ni����(t
test_doctest2is expected %d tests to run, not %d(ttestRRtrun_doctestt
TestFailed(RtEXPECTEDtftt((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pyt	test_mainos	(t*t__main__(
RtsystunittestRRtflagstoptimizetSkipTestRRR!tdoctestR	(((s9/usr/local/python-2.7/lib/python2.7/test/test_doctest2.pyt<module>
sZ	


© 2025 GrazzMean