%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_win32serialport.cpython-312.pyc |
� Ϫ�f� � �J � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZ ddlm Z dej v Z ddlZdd lmZ e�* G d � dej( � Z G d� d ej, � Z G d� de� Z G d� de j2 � Zy# e$ r er� dZdZY �[w xY w)z+ Tests for L{twisted.internet.serialport}. � N)�Protocol)� DoNothing)�Failure)�platform)�unittest�TWISTED_FORCE_SERIAL_TESTS)� serialportc �* � � e Zd Z� fd�Zd� Zd� Z� xZS )�RegularFileSerialc �@ �� t �| � |i |�� || _ || _ y �N)�super�__init__� captured_args�captured_kwargs)�self�args�kwargs� __class__s ��L/usr/lib/python3/dist-packages/twisted/internet/test/test_win32serialport.pyr zRegularFileSerial.__init__$ s% �� ��G��d�-�f�-�!%�D��#)�D� � c � � y r � �r s r �_reconfigurePortz"RegularFileSerial._reconfigurePort) � � �r c � � y r r r s r �_reconfigure_portz#RegularFileSerial._reconfigure_port, r r )�__name__� __module__�__qualname__r r r � __classcell__�r s @r r r # s �� � *� � r r c �( � � e Zd ZeZ� fd�Zd� Z� xZS )�RegularFileSerialPortc � �� |j d� }d|v r|d= t j j | _ || j _ t �| � |i |�� y )N�cbInQue)�get�serial�win32�COMSTAT�comstatr'