Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.222.227.227
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_open.pyc
�
���cc@s;ddlZddlZddlZddlmZddlmZddlmZdej	ej
fd��YZd	ej	ej
fd
��YZddd��YZ
d
e
ej
fd��YZejejddkd�de
ej
fd��Y�Zde
ejej
fd��YZedkr7ej�ndS(i����Ni(tdata01(tutili(tFileNotFoundErrortCommonBinaryTestscBseZd�ZRS(cCstj||��WdQXdS(N(t	resourcestopen_binary(tselftpackagetpath((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pytexecutes(t__name__t
__module__R	(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyR
stCommonTextTestscBseZd�ZRS(cCstj||��WdQXdS(N(Rt	open_text(RRR((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyR	s(R
RR	(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyRst	OpenTestscBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs>tj|jd��#}|j�}|j|d�WdQXdS(Ns
utf-8.filesHello, UTF-8 world!
(RRtdatatreadtassertEqual(Rtfptresult((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyttest_open_binaryscCs>tj|jd��#}|j�}|j|d�WdQXdS(Ns
utf-8.filesHello, UTF-8 world!
(RR
RRR(RRR((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyttest_open_text_default_encodingscCsDtj|jddd��}|j�}WdQX|j|d�dS(Nsutf-16.filesutf-16tstrictsHello, UTF-16 world!
(RR
RRR(RRR((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyttest_open_text_given_encoding!scCs{tj|jddd��}|jt|j�WdQXtj|jddd��}|j�}WdQX|j|d�dS(Nsutf-16.filesutf-8Rtignores*Hello, UTF-16 world!
(RR
RtassertRaisestUnicodeErrorRR(RRR((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyttest_open_text_with_errors'scCs |jttj|jd�dS(Nsdoes-not-exist(RRRRR(R((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyt"test_open_binary_FileNotFoundError5scCs |jttj|jd�dS(Nsdoes-not-exist(RRRR
R(R((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyt test_open_text_FileNotFoundError:s(R
RRRRRRR(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyRs					t
OpenDiskTestscBseZd�ZRS(cCs
t|_dS(N(RR(R((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pytsetUpAs(R
RR(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyR@siis,namespace packages not available on Python 2tOpenDiskNamespaceTestscBseZd�ZRS(cCsddlm}||_dS(Ni(tnamespacedata01(tR!R(RR!((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyRJs(R
RR(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyR EstOpenZipTestscBseZRS((R
R(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyR#Ost__main__((tsystunittesttimportlib_resourcesRR"RRt_compatRtCommonTeststTestCaseRRRRt
skipUnlesstversion_infoR tZipSetupR#R
tmain(((sG/usr/lib/python2.7/site-packages/importlib_resources/tests/test_open.pyt<module>s *	"
© 2025 GrazzMean