Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/test/__pycache__/test_lockfile.cpython-39.pyc
Ðазад
a k�h�; � @ s� d Z ddlZddlZddlmZmZ ddlmZ ddlm Z ddl mZ ddlm Z dZd Ze�� r�e d �du r�e d�du r�dZd ZG dd� de �ZG dd� de �ZdS )z' Tests for L{twisted.python.lockfile}. � N)�skipIf� skipUnless)�lockfile)� requireModule)�platform)�TestCaseF� zwin32api.OpenProcessZ pywintypesTzZOn windows, lockfile.kill is not implemented in the absence of win32api and/or pywintypes.c @ sx e Zd ZdZdd� Zee�� d�dd� �Zdd� Z ee�� d �d d� �Z eee �dd � �Zeee �dd� �Zdd� ZdS )� UtilTestszM Tests for the helper functions used to implement L{FilesystemLock}. c C s: | � � }t�d|� | �ttjd|�}| �|jtj� dS )z� L{lockfile.symlink} raises L{OSError} with C{errno} set to L{EEXIST} when an attempt is made to create a symlink which already exists. �fooN)�mktempr �symlink�assertRaises�OSError�assertEqual�errno�EEXIST��self�name�exc� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/test/test_lockfile.py�test_symlinkEEXIST&