관리-도구
편집 파일: test_run.cpython-36.opt-2.pyc
3 ��2a�$ � @ s� d dl mZ d dlZd dlmZ d dlmZ d dlZG dd� dej�ZG dd� de �Z G d d � d �ZG dd� dej�ZG d d� dej�Z edkr�ejdd� dS )� )�runN)�mock)�captured_stderrc @ s e Zd Zdd� ZdS )�RunTestc C s� G dd� dt �}|d�}|d�}y ||�W np |k r� y|�W nR |k r� t� �2}tjjtd��}dd� |_tj� W d Q R X W d Q R X Y nX Y nX |j� j � j � }| jdt|�� | j d |d � | j d|d � d S ) Nc @ s e Zd Zdd� ZdS )zDRunTest.test_print_exception_unhashable.<locals>.UnhashableExceptionc S s dS )NT� )�self�otherr r �-/opt/alt/python36/lib64/python3.6/test_run.py�__eq__ s zKRunTest.test_print_exception_unhashable.<locals>.UnhashableException.__eq__N)�__name__� __module__�__qualname__r r r r r �UnhashableException s r �ex1�ex2Zcleanup_tracebackc S s | S )Nr )�t�er r r �<lambda> s z9RunTest.test_print_exception_unhashable.<locals>.<lambda>� zUnhashableException: ex2� zUnhashableException: ex1� )� Exceptionr r Zpatch�objectr Zside_effect�print_exception�getvalue�strip� splitlines�assertEqual�lenZassertIn)r r r r �outputZct�tbr r r �test_print_exception_unhashable s$ (z'RunTest.test_print_exception_unhashableN)r r r r! r r r r r s r c @ s<