| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
U
W[�4 � @ s� d Z ddlmZmZ ddlZddlZddlZddlZddlZddl m
Z
ddlmZ ddl
mZ ddlmZmZmZmZ ddlmZ dd lmZ G d
d� dej�ZG dd
� d
ej�ZG dd� de�ZdS )zD
Test running processes with the APIs in L{twisted.internet.utils}.
� )�division�absolute_importN)�_PY3)�platform)�unittest)�error�reactor�utils�
interfaces)�Deferred)�SuppressedWarningsTestsc @ s� e Zd ZdZe�ed�dkr dZdZdZ e
jZdd� Z
dd� Zdd � Zd
d� Zdd
� Zdd� Zdd� Ze�� rtde_dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� ZdS )#�ProcessUtilsTestszt
Test running a process using L{getProcessOutput}, L{getProcessValue}, and
L{getProcessOutputAndValue}.
Nz)reactor doesn't implement IReactorProcessc C sB | � � }t|d��}|�tj�|�tj � W 5 Q R X tj�|�S )zj
Write the given list of lines to a text file and return the absolute
path to it.
Zwt)�mktemp�open�write�os�linesep�join�path�abspath)�selfZsourceLinesZscript�
scriptFile� r �:/usr/lib/python3/dist-packages/twisted/test/test_iutils.py�makeSourceFile! s "z ProcessUtilsTests.makeSourceFilec C s>