| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/__pycache__/ |
Upload File : |
�
���g�
� � � d dl Z d dlZd dlZd dlZd dlmZmZ ej ddg�� Z G d� dej � Z
y)� N)�
import_helper� os_helper�_winapi�win)�required_onc � � e Zd Zd� Zd� Zd� Zy)�WinAPITestsc �< � t j t j d� � j d dz }t j
j
|� st j d� �| j t � 5 t j |� d d d � t j t j |� � }t |j j! d� � }| j# t j |� |� y # 1 sw Y �{xY w)N�ProgramFiles���zPROGRA~1zrequire x:\PROGRA~1 to testzProgra*)�pathlib�Path�os�getenv�parents�path�isdir�unittest�SkipTest�assertRaises� TypeErrorr �GetLongPathName�fsdecode�set�parent�glob�assertIn)�self�testfn�actual�
candidatess �%C:\Python312\\Lib\test\test_winapi.py�test_getlongpathnamez WinAPITests.test_getlongpathname s� � ����b�i�i��7�8�@�@��D�z�Q���w�w�}�}�V�$��#�#�$B�C�C� �
�
�y�
)��#�#�F�+� *� �(�(����V�)<�=�� ����+�+�I�6�7�
��
�
�g�l�l�6�*�J�7� *�
)�s �D�Dc �� � t j t j d� � }t j j |� st
j d� �| j t � 5 t j |� d d d � t j t j |� � }| j t j d|j! � � |� y # 1 sw Y �fxY w)Nr z require '%ProgramFiles%' to testz.\:\\PROGRA~\d)r
r r r r r r r r r r �GetShortPathNamer �assertIsNotNone�re�match�upper)r r r s r"