%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_util.pyc |
� 5}�ac @ s� d Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z m Z m Z m Z d e j e j f d � � YZ d � Z e d k r� e e � � n d S( s Tests for distutils.util.i����N( t run_unittestt swap_attr( t DistutilsByteCompileError( t support( t util( t byte_compilet grok_environment_errort check_environt get_platformt UtilTestCasec B sG e Z d � Z d � Z d � Z e j e j d k d � d � � Z RS( c C s: t j } t t _ z | j t t g � Wd | t _ Xd S( N( t syst dont_write_bytecodet Truet assertRaisesR R ( t selft old_dont_write_bytecode( ( sB /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_util.pyt test_dont_write_bytecode s c C s, t d � } t | � } | j | d � d S( Ns Unable to find batch files error: Unable to find batch file( t IOErrorR t assertEqual( R t exct msg( ( sB /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_util.pyt test_grok_environment_error s c C sT d t _ t j j d d � t � | j t j d t � � | j t j d � d S( Ni t HOMEt PLATi ( R t _environ_checkedt ost environt popt NoneR R R ( R ( ( sB /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_util.pyt test_check_environ s t posixs specific to posixc s� d t _ t j j d d � d d l � � f d � } t � d | � �# t � | j t j d d � Wd QXd t _ t j j d d � d � } t � d | � � t � | j d t j � Wd QXd S( Ni R i����c s � j d � S( Ns /home/distutils( NNNNNs /home/distutilsN( t struct_passwdR ( t uid( t pwd( sB /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_util.pyt mock_getpwuid1 s t getpwuids /home/distutilsc S s t � d S( N( t KeyError( R ( ( sB /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_util.pyt getpwuid_err= s ( R R R R R R R! R R R t assertNotIn( R R"