config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_site.pyo

³ò
h”Rc@s	dZddkZddklZlZlZlZddkZddkZddk	Z	ddk
Z
ddkZde	ijoddk
Z
n
edƒ‚deifd„ƒYZdefd	„ƒYZd
eifd„ƒYZd„Zed
joeƒndS(sTests for 'site'.

Tests assume the initial paths in sys.path once the interpreter has begun
executing have not been removed.

iÿÿÿÿN(tTestSkippedt
TestFailedtrun_unittesttTESTFNtsites!importation of site.py suppressedtHelperFunctionsTestscBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(s›Tests for helper functions.

    The setting of the encoding (set using sys.setdefaultencoding) used by
    the Unicode implementation is not tested.

    cCsti|_dS(sSave a copy of sys.pathN(tsystpathtsys_path(tself((s*/usr/local/lib/python2.5/test/test_site.pytsetUpscCs|it_dS(sRestore sys.pathN(RRR(R	((s*/usr/local/lib/python2.5/test/test_site.pyttearDown"scCs–d}tii|Œ}ti|Œ\}}|itii|ƒ|ƒ|tii|ƒjo|i||ƒn|itii|ƒ|ƒdS(Nt	BeginningtEnd(RR
(tosRtjoinRtmakepathtfailUnlessEqualtabspathtnormcase(R	t
path_partstoriginal_dirtabs_dirtnorm_dir((s*/usr/local/lib/python2.5/test/test_site.pyt
test_makepath&scCsŠtiƒ}xwg}tiD]8}|o+tii|ƒo|ti|ƒdqq~D]&}|i||jd||fƒq\WdS(NisB%s from sys.path not found in set returned by _init_pathinfo(): %s(Rt_init_pathinfoRRRtisdirRt
failUnless(R	tdir_sett_[1]Rtentry((s*/usr/local/lib/python2.5/test/test_site.pyttest_init_pathinfo3s9cCsj|i|itijd|iƒ|iti|iƒdtijƒ|itii	|i
ƒƒdS(s>Contain common code for testing results of reading a .pth files%s not in sys.pathiN(RtimportedRtmodulesRRt
good_dir_pathRRtexiststbad_dir_path(R	tpth_file((s*/usr/local/lib/python2.5/test/test_site.pytpth_file_tests;s&cCsbtƒ}|idtƒz7|iƒti|i|itƒƒ|i	|ƒWd|iƒXdS(Ntprep(
tPthFiletcleanuptTruetcreateRt
addpackagetbase_dirtfilenametsetR&(R	R%((s*/usr/local/lib/python2.5/test/test_site.pyttest_addpackageBs	
cCs\tƒ}|idtƒz1|iƒti|itƒƒ|i|ƒWd|iƒXdS(NR'(	R(R)R*R+Rt
addsitedirR-R/R&(R	R%((s*/usr/local/lib/python2.5/test/test_site.pyttest_addsitedirQs	
(
t__name__t
__module__t__doc__R
RRRR&R0R2(((s*/usr/local/lib/python2.5/test/test_site.pyRs			
			R(cBs8eZdZedddd„Zd„Zed„ZRS(s/Helper class for handling testing of .pth filesttimet__testdir__t__badcCs›|d|_tiidƒ|_tii|i|iƒ|_||_||_||_	tii|i|iƒ|_
tii|i|i	ƒ|_dS(sInitialize instance variabless.pthtN(R.RRRR-Rt	file_pathR tgood_dirnametbad_dirnameR"R$(R	t
filename_baseR R;R<((s*/usr/local/lib/python2.5/test/test_site.pyt__init__as
			cCswt|idƒ}zC|dIJ|dIJ|d|iIJ||iIJ||iIJWd|iƒXti|iƒdS(soCreate a .pth file with a comment, blank lines, an ``import
        <self.imported>``, a line with self.good_dirname, and a line with
        self.bad_dirname.

        Creation of the directory for self.good_dir_path (based off of
        self.good_dirname) is also performed.

        Make sure to call self.cleanup() to undo anything done by this method.

        tws#import @bad module names
s	import %sN(	topenR:R R;R<tcloseRtmkdirR"(R	tFILE((s*/usr/local/lib/python2.5/test/test_site.pyR+ms


cCsátii|iƒoti|iƒn|o7tii|iƒ|_	|i	oti|i=q‰n"|i	o|i	ti|i<ntii|i
ƒoti|i
ƒntii|iƒoti|iƒndS(s°Make sure that the .pth file is deleted, self.imported is not in
        sys.modules, and that both self.good_dirname and self.bad_dirname are
        not existing directories.N(
RRR#R:tremoveRR!tgetR timported_moduleR"trmdirR$(R	R'((s*/usr/local/lib/python2.5/test/test_site.pyR)ƒs

(R3R4R5RR>R+tFalseR)(((s*/usr/local/lib/python2.5/test/test_site.pyR(^s
	tImportSideEffectTestscBsqeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(s(Test side-effects from importing 'site'.cCsti|_dS(sMake a copy of sys.pathN(RRR(R	((s*/usr/local/lib/python2.5/test/test_site.pyR
˜scCs|it_dS(sRestore sys.pathN(RRR(R	((s*/usr/local/lib/python2.5/test/test_site.pyRœscCsetiƒxTtttfD]C}y$|itii|iƒ|
ƒWqt	j
o
qqXqWdS(N(
Rtabs__file__RRt__builtin__RRtisabst__file__tAttributeError(R	tmodule((s*/usr/local/lib/python2.5/test/test_site.pyttest_abs__file__ s
$cCsKtiƒtƒ}x1tiD]&}|i||jƒ|i|ƒqWdS(N(RtremoveduppathsR/RRRtadd(R	t
seen_pathsR((s*/usr/local/lib/python2.5/test/test_site.pyttest_no_duplicate_paths®s
	
cCsdS(N((R	((s*/usr/local/lib/python2.5/test/test_site.pyttest_add_build_dir·scCs0|ittdƒƒ|ittdƒƒdS(Ntquittexit(RthasattrRK(R	((s*/usr/local/lib/python2.5/test/test_site.pyttest_setting_quit½scCs0|ittdƒƒ|ittdƒƒdS(Nt	copyrighttcredits(RRXRK(R	((s*/usr/local/lib/python2.5/test/test_site.pyttest_setting_copyrightÂscCs|ittdƒƒdS(Nthelp(RRXRK(R	((s*/usr/local/lib/python2.5/test/test_site.pyttest_setting_helpÇscCs~tidjojddk}|iƒdidƒo@x=tiiiƒD]}|djoPqIqIW|idƒqzndS(Ntwin32iÿÿÿÿitcptmbcssdid not alias mbcs(	Rtplatformtlocaletgetdefaultlocalet
startswitht	encodingstaliasest
itervaluestfail(R	Rctvalue((s*/usr/local/lib/python2.5/test/test_site.pyttest_aliasing_mbcsËs
	cCs|ittdƒƒdS(Ntsetdefaultencoding(RRXR(R	((s*/usr/local/lib/python2.5/test/test_site.pyttest_setdefaultencoding_removedÕscCsNtiidƒp7yddk}Wntj
oqJX|idƒndS(Nt
sitecustomizeiÿÿÿÿs(sitecustomize not imported automatically(RR!thas_keyRntImportErrorRi(R	Rn((s*/usr/local/lib/python2.5/test/test_site.pyttest_sitecustomize_executedÙs(R3R4R5R
RRPRTRURYR\R^RkRmRq(((s*/usr/local/lib/python2.5/test/test_site.pyRI•s										
	cCstttƒdS(N(RRRI(((s*/usr/local/lib/python2.5/test/test_site.pyt	test_mainæst__main__(R5tunittestttest.test_supportRRRRRKRRRfttempfileR!RtTestCaseRtobjectR(RIRrR3(((s*/usr/local/lib/python2.5/test/test_site.pys<module>s "H7Q	


Man Man