Current File : //opt/imh-python/lib/python2.7/test/test_xpickle.pyo
�
��Wc@sXddlZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ej
jej
jej
j
e�d��Zejd�Zeee�j�ed�ejUejZejejkr�ed��neejej<defd��YZd	efd
��YZid�Zdefd
��YZdefd��YZdefd��YZdefd��YZ de fd��YZ!defd��YZ"de"fd��YZ#defd��YZ$de$fd��YZ%d�Z&d�Z'ed krTd!ej(krJe&ej)ej*�qTe'�ndS("i����N(ttest_supportspickletester.pystest.pickletestertexecs/Did not expect to find test.pickletester loadedtDumpCPickle_LoadPicklecBs&eZeZded�Zd�ZRS(icCstj||�S(N(tcPickletdumps(tselftargtprototfast((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR'scCs
tj|�S(N(tpickletloads(Rtbuf((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR
+s(t__name__t
__module__tKeyErrorterrortFalseRR
(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR#stDumpPickle_LoadCPicklecBs)eZejZded�Zd�ZRS(icCstj||�S(N(R	R(RRRR((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR3scCs
tj|�S(N(RR
(RR((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR
7s(RR
RtBadPickleGetRRRR
(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR/s	cCs4||kr,tj|d�dk||<n||S(sCheck whether the given name is a valid Python binary and has
    test.test_support.

    This respects your PATH.

    Args:
        name: short string name of a Python binary such as "python2.4".

    Returns:
        True if the name is valid, False otherwise.
    s -c "import test.test_support"i(tostsystem(tnametcache((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pythave_python_version;s tAbstractCompatTestscBs�eZdZdZdZd�Zd�Zded�Z	d�Z
dZdZdZ
d�ZdZdZd�ZdZdZdZdZdZRS(cCsg|j|j�|j|j�|j|j�tjd�t|j�sc|jd|j�ndS(Ntxpickles%s not available(t
assertTruetpythontmoduleRRtrequiresRtskipTest(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pytsetUpRs
c	Cs�t}|dd	kr#|d }n|jj||f|�}tj||dgdtjdtjdtj�}|j|�\}}|jdkr�t|��n|S(
s�Bounce a pickled object through another version of Python.

        This will pickle the object, send it to a child process where it will be
        unpickled, then repickled and sent back to the parent process.

        Args:
            python: the name of the Python binary to start.
            obj: object to pickle.
            proto: pickle protocol number to use.

        Returns:
            The pickled data received from the child process.
        i����tctotworkertstdintstdouttstderri(R R!(	t__file__RRt
subprocesstPopentPIPEtcommunicatet
returncodetRuntimeError(	RRtobjRttargettdataR"R$R%((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pytsend_to_workerZs
		icCs|j|j||�S(N(R0R(RRRR((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRwscCs|jj|�S(N(RR
(Rtinput((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyR
zsc
	Csddg}g|D]
}|^q}ddddddd	d
dg	}|g|D]
}|^qQ}|||}x?|D]7}|j|d�}|j|�}|j||�qzWxWtjd
D]H}	x?|D]7}|j||	�}|j|�}|j||�q�Wq�WdS(Ngg+�p�hgg�Z��*)g_D��9g�������?g�?g��Q�	@g�m�"wp@g�W�T��Dgꌠ9Y>)Fii(RR
tassertEqualtpickletestert	protocols(
Rtfor_bin_protostxtneg_for_bin_protosttest_valuesttest_proto0_valuestvalueR	tgotR((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyt
test_float�s

cCs�tjs|jd�ndddddg}xStjD]H}x?|D]7}|j||�}|j|�}|j||�qEWq8WdS(	Nsno unicode supportuu<\u>u<\%c>i4u<
>u<\>u<\ሴ>(Rthave_unicodeRR3R4RR
R2(RtendcasesRtutptu2((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyttest_unicode�s	
N(RR
tNoneRRRRR0RRR
ttest_global_ext1ttest_global_ext2ttest_global_ext4R<ttest_unicode_high_planettest_dynamic_classRBt%test_recursive_list_subclass_and_instt&test_recursive_tuple_subclass_and_instt%test_recursive_dict_subclass_and_instttest_recursive_set_and_instt!test_recursive_frozenset_and_inst(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRLs&					
tCPicklePython24CompatcBs)eZeZdZejZdZdZ	RS(s	python2.4N(
RR
RRRRRRCttest_reduce_calls_basettest_reduce_ex_calls_base(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRN�s
	tPicklePython24CompatcBseZeZeZRS((RR
R	RRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRQ�stCPicklePython25CompatcBseZeZdZejZRS(s	python2.5(RR
RRRRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRR�stPicklePython25CompatcBseZeZeZRS((RR
R	RRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRS�stCPicklePython26CompatcBseZeZdZejZRS(s	python2.6(RR
RRRRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRT�stPicklePython26CompatcBseZeZeZRS((RR
R	RRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRU�stCPicklePython27CompatcBseZeZdZejZRS(s	python2.7(RR
RRRRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRV�stPicklePython27CompatcBseZeZeZRS((RR
R	RRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyRW�scCs2tj|�}|\}}tj|||�dS(N(Rtloadtdump(t	in_streamt
out_streamtmessagetprotocolR-((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pytworker_main�scCs,tjtttttttt	t
t�
dS(N(Rtrun_unittestRRRNRRRTRVRQRSRURW(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyt	test_main�st__main__R"(+RRtos.pathR	R'tsysttypestunittestttestRtpathtabspathtjointdirnameR&tmod_patht
ModuleTypeR3tcompiletopentreadt__dict__tAbstractPickleTestsRtmodulesR,RRRRRNRQRRRSRTRURVRWR^R`targvR#R$(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_xpickle.pyt<module>sD!#	j