shell bypass 403
�
?��cc @ s� d d l m Z d d l Z d d l Z d d l Z e j Z d a d d � Z d e j f d � � YZ
d e j f d � � YZ d e j f d
� � YZ d d � Z
e d k r� e
d
e � n d S( i����( t test_supportNi c C s� t r d G| GHn | } | r/ | j | � n
| j � t | � t | � k r� d G| GHd Gt | � Gt | � GH| GH| GH| GHt d 7a d Sxg t | � D]Y \ } } | | } | | k r� d G| GHd G| G| G| GH| GH| GH| GHt d 7a d Sq� Wd S( Ns checkings error ins length mismatch;i s out of order at index( t verboset sortt lent nerrorst enumerate( t tagt expectedt rawt comparet origt it goodt maybe( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyt check s0
t TestBasec B s e Z d � Z RS( c s� d g } x? t d d � D]. } d | } | j t | d | d � � q W| j d d d g � d t f � f d � � Y� d t f d
� � Y} x| D] } t | � } t r� d G| GHn | } t d | | � | } | j � t d
| | � | } t j | � t d | | � | } | j � | } t d | | d � � t r[d GHd GHn | } | j d � � t d | | � g | D] } � | � ^ q�} | } t j | � t � _
t } y | j � Wn t k
r�t } n X| rt � _
t d | | � n g t
| � D] } | t j d � | � ^ q} g | D] }
|
|
j f ^ qF} | j � g | D] \ }
} |
^ qr} t d | | � q� Wd S( Ni i i
i id i� t Complainsc s/ e Z e Z d � Z � f d � Z d � Z RS( c S s
| | _ d S( N( R ( t selfR ( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyt __init__5 s c sJ � j r: t j � d k r: t r1 d G| G| GHn t � n | j | j k S( Ng����MbP?s complaining at( t maybe_complaint randomR t RuntimeErrorR ( R t other( R ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyt __lt__8 s
c S s d | j S( Ns
Complains(%d)( R ( R ( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyt __repr__? s ( t __name__t
__module__t TrueR R R R ( ( R ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyR 2 s t Stablec B s) e Z d � Z d � Z d Z d � Z RS( c S s | | _ | | _ d S( N( t keyt index( R R R ( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyR C s c S s t | j | j � S( N( t cmpR ( R R ( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyt __cmp__G s c S s d | j | j f S( Ns Stable(%d, %d)( R R ( R ( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyR K s N( R R R R t Nonet __hash__R ( ( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyR B s s Testing sizet identityt reverseds random permutations reversed via functionc S s
t | | � S( N( R ( t at b( ( s5 /usr/local/python-2.7/lib/python2.7/test/test_sort.pyt <lambda>a t s3 Checking against an insane comparison function.s? If the implementation isn't careful, this may segfault.c S s t t j � d � d S( Ni i ( t intR ( R% R&