HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyo
�
�9Zc@`s�ddlmZmZmZddlZddlZddlmZm	Z	ddl
mZddlm
Z
mZmZy"e	dejjj�ZeZWnek
r�eZnXde
fd��YZd	e
fd
��YZedkr�e�ndS(i(tdivisiontabsolute_importtprint_functionN(t	ndpointertload_library(tget_shared_lib_extension(tTestCasetrun_module_suitetdect
multiarraytTestLoadLibrarycB`sveZejed�ejejdkd�d���Zejed�ejejdkd�d���Z	RS(s0ctypes not available on this python installationtcygwins$This test is known to fail on cygwincC`sNytdtjjj�Wn-tk
rI}dt|�}t|�nXdS(NR	sPctypes is not available on this python: skipping the test (import error was: %s)(RtnptcoreR	t__file__tImportErrortstrtprint(tselftetmsg((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyt
test_basics
cC`s�yOy-tdt�}td|tjjj�Wntk
rMtd�nXWn-tk
r~}dt	|�}t|�nXdS(Nt
is_python_extsmultiarray%ss&No distutils available, skipping test.sPctypes is not available on this python: skipping the test (import error was: %s)(
RtTrueRRR
R	RRRR(RtsoRR((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyttest_basic2s

(
t__name__t
__module__Rtskipift
_HAS_CTYPEtknownfailureiftsystplatformRR(((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyR
s


t
TestNdpointercB`s,eZd�Zd�Zd�Zd�ZRS(cC`stj}td|�}|j|jtjdg|���d}td|�}|j|jtjdg|���tjd�}td|�}|jtjdg|��|jt|jtjdg|j	d���ddg}tjtj
g}i|d6|d	6}tj|�}td|�}|j|jtjd|���tj|�}td|�}|j|jtjd
|���tj|dt�}|j
|j
kr�|jt|jtjd|��n"|j|jtjd|���dS(Ntdtypeis<i4s>i4tswaptxtytnamestformatsi
talign(i
(i
(i
(i
(RtintcRt
assertTruet
from_paramtarrayR"tassertRaisest	TypeErrortnewbyteordertfloat64tzerosRtitemsize(Rtdttptdtnamest	dtformatstdtdescrtsamedttdt2((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyt
test_dtype2s0	%%""%cC`s�tdd�}|j|jtjd���|jt|jtjdg��tdd�}|jt|jtjd��|j|jtjdg���tdd�}|j|jtjdgg���dS(Ntndimiii(RR*R+RR,R-R.(RR4((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyt	test_ndimMs""cC`s�tdd�}|j|jtjddgg���|jt|jtjdgdgg��tdd�}|j|jtjd���dS(Ntshapeii(ii((RR*R+RR,R-R.(RR4((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyt
test_shapeWs
(+cC`s�tjddgddggdd�}tdd�}|j|j|��tdd	�}|jt|j|�td|jj�}|j|j|��|jt|jtjddgddgg��dS(
NiiiitordertFtflagstFORTRANt
CONTIGUOUS(	RR,RR*R+R-R.RAtnum(RR$R4((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyt
test_flags^s'(RRR:R<R>RE(((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyR!1s		
	t__main__(t
__future__RRRRtnumpyRtnumpy.ctypeslibRRtnumpy.distutils.misc_utilRt
numpy.testingRRRR
R	RtcdllRRRtFalseR
R!R(((sM/opt/alt/python27/lib64/python2.7/site-packages/numpy/tests/test_ctypeslib.pyt<module>s


!8