| Server IP : 118.27.122.248 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python27/lib64/python2.7/test/ |
Upload File : |
�
�q2_c @ s� d Z d d l Z d d l Z d d l Z d � Z e j e � d Z d e j f d � � YZ d � Z
e d k r~ e
� n d S( s� Python character mapping codec test
This uses the test codec in testcodec.py and thus also tests the
encodings package lookup scheme.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright 2000 Guido van Rossum.
i����Nc C s0 | d k r, d d l m } t | j � � Sd S( Nt testcodeci����( R ( t testR t tuplet getregentryt None( t encodingR ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt codec_search_function s R t CharmapCodecTestc B s, e Z d � Z d � Z d � Z d � Z RS( c C s� | j t d t � d � | j t d t � d � | j t d t � d � | j t d t � d � | j t d t � d
� d S( Nt abcu abct xdefu abcdeft defxu defabct dxfu dabcft dxfxu dabcfabc( t assertEqualt unicodet codecname( t self( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt test_constructorx s
c C s� | j d j t � d � | j d j t � d � | j d j t � d � | j d j t � d � | j d j t � d
� d S( Nu abcR u xdeft abcdefu defxt defabcu dxft dabcfu dxfxt dabcfabc( R
t encodeR ( R ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt test_encodex$ s
c C sh | j t d t � d � | j t d t � d � | j t d t � d � | j t d t � d � d S( Nt ydefu deft defyt dyfu dft dyfy( R
R R ( R ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt test_constructory+ s c C s | j t t d t � d S( Ns abc( t assertRaisest UnicodeErrorR R ( R ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt test_maptoundefined1 s ( t __name__t
__module__R R R R ( ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyR s c C s t j j t � d S( N( R t test_supportt run_unittestR ( ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt test_main4 s t __main__( t __doc__t test.test_supportR t unittestt codecsR t registerR t TestCaseR R$ R ( ( ( s; /opt/alt/python27/lib64/python2.7/test/test_charmapcodec.pyt <module>
s