+
    Bio	                         R t ^ RIt^ RIt]P                  P                  ^8  d   ]P
                  ! R4      h ! R R]4      t ! R R]P                  4      t	^ RI
5 ]R8X  d   ]P                  ! 4        R# R# )	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:

ЉЊЈЁЂ

NzCannot test docstrings with -O2c                      a  ] tR t^t o RtR tR t ! R R]4      tR t	R t
]! ]	]
RR	7      t]R
 4       t]R 4       tRtV tR# )Cu   Class C.

>>> print(C())  # 2
42


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

    ЉЊЈЁЂ

c                    R# )z#C.__init__.

>>> print(C()) # 3
42
N selfs   &6/usr/lib/python3.14/test/test_doctest/test_doctest2.py__init__
C.__init__!           c                    R# )z
>>> print(C()) # 4
42
42r   r   s   &r   __str__	C.__str__(   s    
 r   c                   *   a  ] tR t^/t o RtR tRtV tR# )C.Dz2A nested D class.

>>> print("In D!")   # 5
In D!
c                    R# )z
>>> print(3) # 6
3
Nr   r   s   &r   nested
C.D.nested6   r   r   r   N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes____classdictcell____classdict__s   @r   Dr   /   s     		 	r   r   c                    V P                   ) # )z?
>>> c = C()    # 7
>>> c.x = 12   # 8
>>> print(c.x)  # 9
-12
_xr   s   &r   getxC.getx<   s     xr   c                    Wn         R# )zE
>>> c = C()     # 10
>>> c.x = 12    # 11
>>> print(c.x)   # 12
-12
Nr!   )r   values   &&r   setxC.setxE   s	     r   zi        >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print(c.x)  # 15
        -12
        )docc                     R# )zU
A static method.

>>> print(C.statm())    # 16
666
>>> print(C().statm())  # 17
666
i  r   r   r   r   statmC.statmU   s     r   c                    V# )zT
A class method.

>>> print(C.clsm(22))    # 18
22
>>> print(C().clsm(23))  # 19
23
r   )clsvals   &&r   clsmC.clsma   s	     
r   r!   N)r   r   r   r   r   r	   r   objectr   r#   r'   propertyxstaticmethodr+   classmethodr0   r   r   r   s   @r   r   r      sg     F  	t " 	A 	 	 	 	r   r   c                   &   a  ] tR t^nt o R tRtV tR# )Testc                    ^ RI p^ RIp^pVP                  VP                  \        ,          4      w  rEV'       d   V P                  RWE3,          4       WS8w  d   V P                  RW53,          4       R# R# )    Nz%d of %d doctests failedz expected %d tests to run, not %d)doctestsystestmodmodulesr   fail)r   r;   r<   EXPECTEDfts   &     r   test_testmodTest.test_testmodo   sX    s{{845II0A69:=II8H=HI r   r   N)r   r   r   r   rC   r   r   r   s   @r   r8   r8   n   s     J Jr   r8   )*__main__)r   r<   unittestflagsoptimizeSkipTestr2   r   TestCaser8   r;   r   mainr   r   r   <module>rM      st     99


=
>>X XvJ8 J zMMO r   