3 § f½ ã @ sä d Z ddlmZ ddlZddlmZmZ ddlmZm Z ddl mZ ddlm Z ddlmZ ddlZdd lmZ ejZG d d„ dejƒZG dd „ d ejƒZG dd„ dejƒZG dd„ dƒZG dd„ dejƒZedkràejdd� dS )z„Test help_about, coverage 100%. help_about.build_bits branches on sys.platform='darwin'. '100% combines coverage on Mac and others. é )Ú help_aboutN)ÚrequiresÚfindfile)ÚTkÚTclError)ÚFunc)Ú Mbox_func)Útextview)Úpython_versionc @ sP e Zd ZdZedd„ ƒZedd„ ƒZdd„ Zdd „ Zd d„ Z dd „ Z dd„ ZdS )ÚLiveDialogTestzmSimulate user clicking buttons other than [Close]. Test that invoked textview has text from source. c C s0 t dƒ tƒ | _| jjƒ t| jddd�| _d S )NÚguiz About IDLET)Ú_utest)r r ÚrootÚwithdrawÚAboutÚdialog)Úcls© r úF/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_help_about.pyÚ setUpClass s zLiveDialogTest.setUpClassc C s | ` | jjƒ | jjƒ | `d S )N)r r Úupdate_idletasksÚdestroy)r r r r Ú tearDownClass s zLiveDialogTest.tearDownClassc C s | j tjƒ dƒ d S )NÚ32Ú64)r r )ZassertInr Ú build_bits)Úselfr r r Útest_build_bits&