%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_platform.pyo |
ó Nêáac @ 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( ( s. /usr/local/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( ( s. /usr/local/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( ( s. /usr/local/lib/python2.7/test/test_platform.pyt test_architecture_via_symlink s c C sD x= t t f D]/ } x&