Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
o �b� � @ s� d Z ddlZddlZddlZddlmZ dZzddlm Z ddl mZ W n ey/ dZY nw ej dd� dkr;d ZG d d� dej�ZdS )z Test win32 shortcut script � N)�unittest)�shell)�shortcutz"Only runs on Windows with win32com� )� � zBroken on Python 3.7+.c @ s e Zd ZeZdd� Zdd� ZdS )� ShortcutTestsc C s� t }tj�|�}t�|�}| �� d }|�|� | �tj� |�� t� |�}|�tj �d }| �|t|� d� �� |�� � dS )z+ Create a simple shortcut. �.lnkr N)�__file__�os�path�basenamer �Shortcut�mktemp�save� assertTrue�exists�open�GetPathr �SLGP_RAWPATH�assertEqual�len�lower)�self�testFilename�baseFileName�s1�tempname�sc�scPath� r �</usr/lib/python3/dist-packages/twisted/test/test_shortcut.py�test_create s &zShortcutTests.test_createc C s� t j}tj�|�}t�� }tj|dd||dd�}| � � d }|� |� | �tj�|�� t� |�}|�tj�d }| �|t|� d� �� |�� � | �|�� d� | �|�� |� | �|�� |df� dS )zZ Create a shortcut to the Python executable, and set some values. z-VzThe Python executable� )r � arguments�description� workingdir�iconpath�iconidxr r N)�sys� executabler r r �tempfile� gettempdirr r r r r r r r r r r r r �GetDescription�GetWorkingDirectory�GetIconLocation)r r r �tempDirr r r r r r r! �test_createPythonShortcut( s( � "z'ShortcutTests.test_createPythonShortcutN)�__name__� __module__�__qualname__� skipReason�skipr"