JezK
Edit File: test_tooltip.cpython-38.opt-1.pyc
U �:�e � @ s� d Z ddlmZmZ ddlmZ ed� ddlmZ ddlZddl m Z mZmZ ddl Z dd � Zd d� Zdd � Zdd� ZG dd� de j�ZG dd� de j�Zedkr�e jdd� dS )z�Test tooltip, coverage 100%. Coverage is 100% after excluding 6 lines with "# pragma: no cover". They involve TclErrors that either should or should not happen in a particular situation, and which are 'pass'ed if they do. � )�TooltipBase�Hovertip)�requiresZgui)�wrapsN)�Button�Tk�Toplevelc C s t � ad S �N)r �root� r r �C/usr/local/python38/lib/python3.8/idlelib/idle_test/test_tooltip.py�setUpModule s r c C s t �� t �� b d S r )r Zupdate_idletasks�destroyr r r r �tearDownModule s r c s t � �� �fdd���g �_�S )Nc s �j �| |f� � | |�S r )�call_args_list�append)�args�kwargs��func�wrapped_funcr r r s z'add_call_counting.<locals>.wrapped_func)r r )r r r r �add_call_counting s r c C sN t t�}| �|j� |�d� t|dd�}|�� | �|j� |�� ||fS )NzTest tooltip�ToolTip test button��text)r r � addCleanupr �titler �packZlift)Ztestobj�top�buttonr r r �_make_top_and_button&