Linux garfield.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
lib64
/
python2.7
/
test
/
//lib64/python2.7/test/test_charmapcodec.pyo
� zfc @ 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. /usr/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. /usr/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. /usr/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. /usr/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. /usr/lib64/python2.7/test/test_charmapcodec.pyt test_maptoundefined1 s ( t __name__t __module__R R R R ( ( ( s. /usr/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. /usr/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. /usr/lib64/python2.7/test/test_charmapcodec.pyt <module> s