Current File : //opt/imh-python/lib/python2.7/test/test_memoryio.pyc
�
��Wc@sadZddlmZddlmZddlZddlmZddlZddl	Z
ddlZdfd��YZdfd	��YZ
d
e
eejfd��YZdfd
��YZde
eeejfd��YZdeejfd��YZdefd��YZdefd��YZdefd��YZd�Zedkr]e�ndS(udUnit tests for memory-based file-like objects.
StringIO -- for unicode strings
BytesIO -- for bytes
i����(tunicode_literals(tprint_functionN(ttest_supporttMemorySeekTestMixincBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs"|jd�}|j|�}dS(Nu
1234567890(tbuftypetioclass(tselftbuftbytesIo((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttestInitscCs�|jd�}|j|�}|j|d |jd��|j|dd!|jd��|j|d|jd��|j|j|j��dS(Nu
1234567890iiii�(RRtassertEqualtreadtEOF(RRR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttestReads cCsQ|jd�}|j|�}|j||j��|j|j|j��dS(Nu
1234567890(RRR
RR(RRR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttestReadNoArgsscCs�|jd�}|j|�}|jd�|jd�|j||j��|jd�|j|d|j��|jt|jd�dS(Nu
1234567890iiig(RRRtseekR
tassertRaisest	TypeError(RRR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttestSeek&s


cCs~|jd�}|j|�}|jd|j��|jd�|jd|j��|jd�|jd|j��dS(Nu
1234567890iii'(RRR
ttellR(RRR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttestTell2s

(t__name__t
__module__R	R
RRR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyRs
					tMemoryTestMixincBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs&|j�}|j|j|j�dS(N(RRtUnsupportedOperationtdetach(RR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_detach?scCs&|j|j|d��d�|j|jd�d�|j|j|d��d�|j|j�d�|j|jd�d�|j|j�d�|j|j|d��d�|j|jd�d�|j|j|d��d	�|j|jd
�d
�|j|j�d	�dS(Nublah.iiuHello.iu	 world


i	uhii(R
twriteRRttruncate(Rtftt((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	write_opsCscCs�|jd�}|j|�}|j||j�|j|j�|�|j�}|j||j�|j|j�|�|jt|jd�|j	�|jt
|j|jd��dS(Nuhello world
u(RRRR
tgetvalueRRRtNonetcloset
ValueError(RRtmemio((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_writePs
cCs�|jd�}|j�}|j|j|gd�d�|j|j�|d�|jg�|j|j�|d�|j�}|jt|j|gdg�|j|j�|�|jt|jd�|j�|jt	|jg�dS(Nu
1234567890idi(
RRR
t
writelinesR!R RRR"R#(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_writelines]s 
 
cs8�j�}�fd�}�jt|j|��dS(Nc3s�jd�Vt�dS(Nuspam(RtKeyboardInterrupt((R(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	error_genns(RRR(R&(RR$R)((Rsk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_writelines_errorlscCs�|jd�}|j|�}|jt|jd�|jd�|j|j�d�|j|j�|d �|j|jd�d�|j|j�|d �|j|jd�d�|j|j�|d �|j|j�d�|jdd�|j	|�|j|j�|d |�|j�}|j|jd�|�|j|j�|�|jt|jd�|j�|jt|jd�dS(	Nu
1234567890i����iiliiu0(
RRRR#RRR
R RRR!RR"(RRR$tpos((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_truncatets(


cCs�|jd�}|j|�}|j|j�|�|jd�}|j|j�|j�|j|d�|j|j�|d�|j|�|j|j�|�dS(Nu
1234567890i(RRR
R R!Rt__init__(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	test_init�s
cCs�|jd�}|j|�}|j|jd�|j�|j|jd�|d �|j|jd�|dd!�|j|jd�|d�|j|j�|j�|jd�|j|j�|�|j|j�|j�|j|j�d�|jd�|j|jd�|�|jd�|jt|j��t|��|jd	�|jt|j��t|��|jd�|j|jd�|�|j	t
|jd
�|j�|j	t|j�dS(Nu
1234567890iilii�i
i����idu(
RRR
RRRRttypeR!RRR"R#(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	test_read�s, 


"
"

cCs=|jd�}|j|d�}|j|jd�|j�|j|j�|�|j|j�|�|j|j�|j�|jd�|j|jd�|d �|j|jd�|dd!�|j|jd�|dd!�|jd�|j|jd�|�|jd�|j|jd�|j�|jd�}|j|d	d �}|j|j�|�|j|j�|�|j|j�|d �|j|j�|j�|jd�|jt|j��t|��|j|j�|�|jt|jd
�|j	�|jt
|j�dS(Nu1234567890
iiili
ii����iu(RRR
treadlineRRR/RRR"R#(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_readline�s4
  


"
cCs�|jd�}|j|d�}|j|j�|gd�|jd�|j|j�|dg|gd�|jd�|j|jd�|gd�|jd�|j|jd�|gd�|jd�|j|jd�|gd�|jd�|jt|j�d�t|��|jd�|j|jd�|gd�|jt|jd	�|j	�|jt
|j�dS(
Nu1234567890
i
ii	ilii����u(RRR
t	readlinesRR/R!RRR"R#(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_readlines�s$
(
 
 
 
&
 
cCs'|jd�}|j|d�}|jt|�|�|jt|d��|jt|d��d}x(|D] }|j||�|d7}qqW|j|d�|jd�d}x(|D] }|j||�|d7}q�W|j|d�|j|d�}|j�|jt	t
|�dS(Nu1234567890
i
u__iter__unextiii(RRR
titert
assertTruethasattrRR"RR#tnext(RRR$titline((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_iterator�s&



cCs�|jd�}|j|�}|j|j�|�|j�|j|j�|�|jt|j��t|��|j|d�}|j|j�d|jd��|j|�}|j�|jt|j�dS(Nu
1234567890i�i����u890(	RRR
R RR/R"RR#(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_getvalue�s
"#
cCs�|jd�}|j|�}|jd�|jt|jd�|jt|jdd�|jt|jdd�|j|jd�d�|j|jdd�d�|j|j�|�|j|jd�d�|j|jd�d�|j|jdd�d�|j|j�|d�|j|jt|��t|��|j|j�|j�|jt|�d�|j|j�|j�|j|jdd�t|��|j|j�|j�|j	�|jt|jd�dS(	Nu
1234567890ii����iiili(
RRRRR#RR
tlenRR"(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	test_seek
s*
%"
cCs�|jd�}|j|�}|j|jt|�d�d�|j|j�|j�|j|j�d�|j|j�|�|j	|j�|j|j�|�|j	|�|j|j�||jd�|�dS(Nu
1234567890iiu(
RRR
RR=RRRR R(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_overseek#s#
cCs�|jd�}|j|�}|j|j�d�|jd�|j|j�d�|jd�|j|j�d�|j�|jt|j�dS(Nu
1234567890iii'(RRR
RRR"RR#(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	test_tell0s


cCs8|jd�}|j|�}|j|j�d�dS(Nu
1234567890(RRR
tflushR!(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_flush<scCs�|j�}|j|j�t�|j|j�t�|j|j�t�|j|j�t�|j|jt�|j	�|j
t|j�|j
t|j�|j
t|j�|j
t|j�|j|jt�dS(N(RR
twritabletTruetreadabletseekabletisattytFalsetclosedR"RR#(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_flagsBs
cs]�jd����fd�}��fd�}�j|����j|���dS(Nu
1234567890cs/d�jfd��Y}|��}|j�S(NtMemIOcBseZRS((RR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyRKTs(RR (RKtm(RR(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest1Sscs8d�jf�fd��Y}|�d�}|j�S(NRKcseZ�fd�ZRS(cs�jj||�dS(N(RR-(tmetatb(R(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR-Zs(RRR-((R(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyRKYs(RR!R (RKRL(RR(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest2Xs(RR
(RRMRQ((RRsk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_subclassingQs
cCs0x)td�D]}|j�}d|_q
WdS(Nidi(trangeRtfoo(Rt_R$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_instance_dict_leakasc	s��jd�}�j|�}d|_|jd�d�jf�fd��Y}ddl}d|_|j|_||_||d�}|jd�x�t	dt
jd	�D]�}x�||fD]�}t
jt
j
|d
|��}�j|j�|j���j|j|j��j|j|j��j|j�|j��|j��jtt
j
||�q�Wq�W|`dS(Nu
1234567890i*itPickleTestMemIOcseZ�fd�ZRS(cs �jj||�||_dS(N(RR-RT(RNt	initvalueRT(R(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR-os(RRR-((R(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyRWnsi����u__main__iPitprotocol(RRRTRt__main__RRt__qualname__RWRStpickletHIGHEST_PROTOCOLtloadstdumpsR
R t	__class__RR"RR#(	RRR$RWRZtsubmemiotprototobjtobj2((Rsk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_picklinghs*	
		

!(RRRRR%R'R*R,R.R0R2R4R;R<R>R?R@RBRJRRRVRe(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR=s(		
	
											
					t
PyBytesIOTestcBseeZejZed��ZejZdZd�Z	d�Z
d�Zd�Zd�Z
d�ZRS(cCs
|jd�S(Nuascii(tencode(ts((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR�stcCsK|jd�}|j|�}|jt|j�|j|j�|�dS(Nu
1234567890(RRRRtread1R
R(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_read1�scCs�|jd�}|j|�}td�}|j|j|�d�|j|d�|j|j|�d�|j|d�|j|j|�d�|j|d�td�}|jd�|j|j|�d�|j|d	�td
�}|jd�|j|j|�d�|j|d
�|jt|jd�ddl}|jd
d�}|j|�}|j|�|j|j	�d	�|j
�|jt|j|�|jd�}t�}|jd�|j|�|j|d
�dS(Nu
1234567890thelloit12345t67890ishello worldi
t1234567890dRiui����RPt123i*(RRt	bytearrayR
treadintoRRRtarrayttostringR"R#(RRR$RPRsRO((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_readinto�s<



	

cCs+|jd�}|j|�}|j|jdd�d�|j|jdd�d�|j|jdd�d�|j|jdd�d�|j|jdd�d	�|j|jdd�d
�|jdd�|j|j�|d�|jd�|jdd�|j|j�|d�dS(Nu
1234567890i����iiii����ii	i
ii����(RRR
RR(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_relative_seek�s
cCsU|j�}|jt|jd�|jt|jd�|jt|jdg�dS(Nu
1234567890(RRRRR&(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_unicode�scCs|d}ddl}|jd|�}|j|�}|j|j�|�|j|j|�d�|j|j�|�dS(Nt
1234567890i����RPi
(RsRR
R R(RRRsROR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_bytes_array�scCs?|jd�}|jd|�|jt|j|dd�dS(Nu
1234567890t
initial_bytesRT(RRRRR!(RR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_issue5449�s(RRtpyioRtstaticmethodRtBytesIORRRkRuRvRwRyR{(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyRf�s				!				tTextIOTestMixincBsbeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
cs�|jdd���fd�}|j�jd��jd�|�|j�jd��jd�|�|j�jd	��jd�|�|j�jd
�dS(Ntnewlinecs�jd��j�dS(Ni(RR((R$(sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pytforce_decode�s
ua
u
ub
u
uc
du
(u
u
(u
u
u
(RR!R
tnewlinesR(RR�((R$sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newlines_property�s


cCs�|j�}|jt|jdd�|jt|jdd�|jt|jdd�|jt|jdd�|jt|jdd�|jt|jdd�dS(Ni����iii����i(RRtIOErrorR(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyRv�scCs@|j�}|j|j�|j|j�|j|j�dS(N(RtassertIsNonetencodingterrorstassertFalsetline_buffering(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_textio_propertiesscCs�|jd�}|jt|�dddg�|j|j�d�|j�}|j|jd�d�|jd�|jt|�dddg�|j|j�d�dS(Nua
b
c
dua
ub
uc
dii(RR
tlistR RR(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newline_defaults
cCs�|jddd�}|jt|�ddddg�|jd�|j|jd�d	�|j|jd
�d�|j|jd
�d�|j|jd�d
�|j|j�d�|jdd�}|jd
|jd��|jd|jd��|jd|jd��|jd�|j|j�d�|j|j�d�|jddd�}|j|jd�d�dS(Nua
b
c
dR�ua
ub
uc
udiiuaiu
bu
cu
ua
b
c
diub
uc
dua
bua
b(RR!R
R�RRR R(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newline_nones""

cCsd|jddd�}|jt|�ddddg�|jd�|j|jd	�d
�|j|jd�d�|j|jd
�d�|j|j�d�|jdd�}|jd|jd��|jd|jd��|jd|jd��|jd|jd��|jd�|jt|�ddddg�|j|j�d�dS(Nua
b
c
dR�uua
ub
uc
udiiua
b
iu
ciu
ub
u
d(RR
R�RRR R(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newline_empty0s"

"cCs�|jddd�}|jt|�dddg�|j|j�d�|jdd�}|j|jd�d�|jd�|jt|�dddg�|j|j�d�dS(	Nua
b
c
dR�u
ua
ub
uc
dii(RR
R�R RR(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newline_lfCs
cCs|jddd�}|j|j�d�|jd�|jt|�ddddd	g�|j|j�d�|jdd�}|j|jd�d
�|jd�|jt|�ddddd	g�|jd�|j|j�ddddd	g�|j|j�d�dS(Nua
b
c
dR�u
ua
b

c
diua
ub
uc
udi(RR
RRR�R RR3(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newline_crOs
%
%
%cCs
|jddd�}|j|j�d�|jd�|jt|�dddg�|jd�|j|j�dddg�|j|j�d�|jdd�}|j|jd�d	�|jd�|jt|�dddg�|j|j�d�dS(
Nua
b
c
dR�u
u
a
b

c
diua
ub

uc
di(RR
RRR�R3R R(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_newline_crlf_s


cCsH|jddd�}|j|jd�d�|j|j�d�dS(Nua
b
R�iua
b
(RR!R
RR (RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_issue5265os(RRR�RvR�R�R�R�R�R�R�R�(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR�s		
								tPyStringIOTestcBs/eZeZejZejZdZd�Z	RS(ucCsdtd�}|j|�}|j|j�|�|j�}|j|�|j|j�|�dS(Ni�(tunichrRR
RRR (Rt	surrogateR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_lone_surrogates}s
(
RRtunicodeRR|tStringIORRRR�(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR�vs
		tPyStringIOPickleTestcBs<eZdZeZejZdZdejfd��YZ	RS(uETest if pickle restores properly the internal state of StringIO.
    uRcBseZd�Zd�ZRS(cOs"tjtjtj||���S(N(R\R^R_R|R�(tclstargstkwargs((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt__new__�scOsdS(N((RR�R�((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR-�s(RRR�R-(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR�s	(
RRt__doc__R�RR|RRR�R(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��s
	tCBytesIOTestcBs_eZejZejZejd�ej	�Z	d�Z
d�Zej
Z
ejd��ZRS(u.array.array() does not have the new buffer APIcCs�|j�}|j�}|jt|�d�t|d�|j|dt�|ddk	rw|j|dt�n|j	�|j
t|j�dS(Niiii(Rt__getstate__R
R=RqtassertIsInstancetintR!tdictR"RR#(RR$tstate((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_getstate�s
cCs
|j�}|jd�|jtd�ddf�|jddidd6f�|jt|jd�|jt|jd
�|jt|jd�|jt|jd�|jt|jd�|jt|j�|jt|jd�|j�|jt|jd�dS(Nsno erroriiuspamRii����uunicodegslen-testRI(sno erroriN(Rii����N(uunicodeiN(RigN(Riii(slen-testi(sclosediN(Rt__setstate__R!RqRR#RR"(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_setstate�s

cCs�tjd�}|j}|jtjtj��|�|tj�|�|tjd�|dd�|tjdd�|dd�dS(NtP2PP2PROii�(tsupporttcalcobjsizetcheck_sizeofR
tobjectt
__sizeof__tioR~(Rtbasesizetcheck((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyttest_sizeof�s	(RRR�R~RRtunittesttskipRfRyR�R�R�R�tcpython_onlyR�(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��s					t
CStringIOTestcBs5eZejZejZd�Zd�Zd�ZRS(cCs�|jd�}|j|�}|j|j�|�|j|j|�t|��|j|j�t|��|j|j�|�|j|j|�t|��|j|j�t|�d�|j|j�||�dS(Nu𠌊𠍇i(RRR
R RR=R(RRR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt
test_widechar�s cCs�|j�}|j�}|jt|�d�|j|dt�|j|dt�|j|dt�|ddk	r�|j|dt	�n|j
�|jt|j�dS(Niiiii(
RR�R
R=R�R�tstrR�R!R�R"RR#(RR$R�((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��s
cCs
|j�}|jd
�|jdddidd6f�|jt|jd�|jt|jd�|jt|jd�|jt|jd�|jt|jd�|jt|jd�|jt|j�|jt|jd�|j�|jt|jd�dS(Nuno erroru
iuiuspamufi����Rigulen-testuclosed(uno erroru
iN(uufiN(uui����N(RiuiN(uugN(uuii(ulen-testi(ucloseduiN(RR�R!RR#RR"(RR$((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��s
 
(	RRR�R�RRR�R�R�(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��s
				tCStringIOPickleTestcBs*eZejZdejfd��YZRS(RcBseZd�Zd�ZRS(cOs(tjtjtj||�dd��S(NRYi(R\R^R_R�R�(R�R�R�((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��scOsdS(N((RR�R�((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR-�s(RRR�R-(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR�s	(RRR�RR�R(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyR��s	cCs)ttttttg}tj|�dS(N(RfR�R�R�R�R�R�trun_unittest(ttests((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt	test_mainsu__main__(R�t
__future__RRR�ttestRR�R�t_pyioR|R\RRtTestCaseRfRR�R�R�R�R�R�R(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_memoryio.pyt<module>s*-�RY�	/1