403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/scipy/interpolate/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/scipy/interpolate/tests/__pycache__/test_gil.cpython-311.pyc
�

d�cR��\�ddlZddlZddlZddlZddlmZddlZddlZ	Gd�d��Z
dS)�N)�assert_equalc��eZdZdZd�Zd�Zd�Zejj	ej�
d���d�����ZdS)	�TestGILzECheck if the GIL is properly released by scipy.interpolate functions.c��g|_dS�N)�messages)�selfs �B/usr/lib/python3/dist-packages/scipy/interpolate/tests/test_gil.py�setup_methodzTestGIL.setup_methods
����
�
�
�c�:�|j�|��dSr)r�append)r	�messages  r
�logzTestGIL.logs���
���W�%�%�%�%�%rc�b����|j�G���fd�dtj��}|��S)Nc���eZdZ���fd�ZdS)�0TestGIL.make_worker_thread.<locals>.WorkerThreadc�>���d������d��dS)N�interpolation started�interpolation complete�)r	�argsr�targets ���r
�runz4TestGIL.make_worker_thread.<locals>.WorkerThread.runs6�����+�,�,�,����
�
���,�-�-�-�-�-rN)�__name__�
__module__�__qualname__r)rrrs���r
�WorkerThreadrs8�������
.�
.�
.�
.�
.�
.�
.�
.�
.rr)r�	threading�Thread)r	rrrrs `` @r
�make_worker_threadzTestGIL.make_worker_threads[������h��	.�	.�	.�	.�	.�	.�	.�	.�	.�9�+�	.�	.�	.��|�~�~�rz*race conditions, may depend on system load)�reasonc�Z���d����fd�}d��|d���}|��|��}|���td��D]+}tjd��|�d���,|���t|jgd���dS)	Nc�v�tjdd|��x}}tj||��\}}||z}|||fS)Nr��)�np�linspace�meshgrid)�n_points�x�y�x_grid�y_grid�zs      r
�generate_paramsz9TestGIL.test_rectbivariatespline.<locals>.generate_params"sC���K��4��2�2�2�A���[��A�.�.�N�F�F����A��a��7�Nrc���tjdd��D]C}�|��}tj��}�|�tj��|z
|kr|cS�DdS)Ni�r%)�	itertools�count�time)�requested_timer)r�time_startedr/�interpolates    ��r
�calibrate_delayz9TestGIL.test_rectbivariatespline.<locals>.calibrate_delay(ss���%�O�D�$�7�7�
 �
 ��&��x�0�0��#�y�{�{����T�"�"��9�;�;��-��>�>��K�K�K�?�	
 �
 rc�H�tj�|||��dSr)�scipyr6�RectBivariateSpline)r*r+r.s   r
r6z5TestGIL.test_rectbivariatespline.<locals>.interpolate0s#����1�1�!�Q��:�:�:�:�:r�)r4g�?�working)rr<r<r<r)	r!�start�ranger3�sleepr�joinrr)r	r7r�
worker_thread�ir/r6s     @@r
�test_rectbivariatesplinez TestGIL.test_rectbivariatesplines�����	�	�	�	 �	 �	 �	 �	 �	 �	;�	;�	;���a�0�0�0���/�/��T�B�B�
��������q���	 �	 �A��J�s�O�O�O��H�H�Y������������T�]�%
�%
�%
�	�	�	�	�	rN)rrr�__doc__rrr!�pytest�mark�slow�xfailrCrrr
rrs�������O�O����&�&�&�	�	�	��[���[���J��K�K���L�K�����rr)r1rr3�numpyr&�
numpy.testingrrE�scipy.interpolater9rrrr
�<module>rLs�������������������&�&�&�&�&�&�
�
�
�
�����5�5�5�5�5�5�5�5�5�5r

Youez - 2016 - github.com/yon3zu
LinuXploit