shell bypass 403
�
?��cc @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d e j f d � � YZ d � Z e
d k r� e � n d S( i����N( t supportt PlatformTestc B s e Z d � Z e e d � r* d � Z n d � Z d � Z d � Z d � Z d � Z
d � Z d � Z d
� Z
d � Z d � Z d
� Z d � Z e j e j j d � d � d � � Z d � Z d � Z d � Z e j e j d k d � d � � Z d � Z d � Z d � Z RS( c C s t j � } d S( N( t platformt architecture( t selft res( ( s9 /usr/local/python-2.7/lib/python2.7/test/test_platform.pyt test_architecture
s t symlinkc C sx d � } t j j t j � } t j j t j � } t j | | � z | j | | � | | � � Wd t j
| � Xd S( Nc S s1 | d d g } t j | d t j �} | j � S( Ns -cs. import platform; print platform.architecture()t stdout( t
subprocesst Popent PIPEt communicate( t pythont cmdt p( ( s9 /usr/local/python-2.7/lib/python2.7/test/test_platform.pyt get s ( t ost patht realpatht syst
executablet abspathR t TESTFNR t assertEqualt remove( R R t realt link( ( s9 /usr/local/python-2.7/lib/python2.7/test/test_platform.pyt test_architecture_via_symlink s c C sD x= t t f D]/ } x&