Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python36
/
lib64
/
python3.6
/
idlelib
/
idle_test
/
__pycache__
[ HOME ]
Exec
Submit
File Name : test_macosx.cpython-36.opt-2.pyc
3 ��2a� � @ s� d dl mZ d dlZd dlmZ d dlZd dljZd dl m Z dddhZdhZeeB Z G d d � d ej�ZG dd� dej�ZG d d� dej�Zedkr�ejdd� dS )� )�macosxN)�requires)�FileList�carbon�cocoa�xquartz�otherc @ s, e Zd Zedd� �Zedd� �Zdd� ZdS )�InitTktypeTestc C s( t d� tj� | _| jj� tj| _d S )N�gui)r �tk�Tk�root�withdrawr �platform� orig_platform)�cls� r �0/opt/alt/python36/lib64/python3.6/test_macosx.py� setUpClass s zInitTktypeTest.setUpClassc C s$ | j j� | j j� | ` | jt_d S )N)r �update_idletasks�destroyr r r )r r r r � tearDownClass s zInitTktypeTest.tearDownClassc C s` xZdt fdtffD ]F\}}| j|d��, |t_tjd k tj� | jtj|� W d Q R X qW d S )N�darwinr )r )�alltypes�nontypes�subTestr r �_tk_typeZ _init_tk_typeZassertIn)�selfr �typesr r r �test_init_sets_tktype s z$InitTktypeTest.test_init_sets_tktypeN)�__name__� __module__�__qualname__�classmethodr r r r r r r r s r c @ sJ e Zd Zejd fejdfejdfejdffZe j d�dd� �Zdd� Zd S )�IsTypeTkTestr r r zidlelib.macosx._init_tk_typec C sP d t _xD| jD ]:\}}| j|d�� |� | j|j� |j� W d Q R X qW d S )N)�func)r r �isfuncsr � assertTrue�called� reset_mock)r Zmockinitr% �whentruer r r �test_is_calls_init2 s zIsTypeTkTest.test_is_calls_initc C sb x\| j D ]R\}}xHtD ]@}| j|||d��& |t_||kr@| jn| j|� � W d Q R X qW qW d S )N)r% r* �tktype)r&