← Back
Editing: test_iutils.cpython-38.pyc
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>