/opt/alt/python37/lib64/python3.7/idlelib/idle_test/__pycache__
NameSizeModeActions
htest.cpython-37.opt-1.pyc138740644editdlrm
htest.cpython-37.opt-2.pyc115740644editdlrm
htest.cpython-37.pyc138740644editdlrm
mock_idle.cpython-37.opt-1.pyc26070644editdlrm
mock_idle.cpython-37.opt-2.pyc17360644editdlrm
mock_idle.cpython-37.pyc26070644editdlrm
mock_tk.cpython-37.opt-1.pyc107820644editdlrm
mock_tk.cpython-37.opt-2.pyc58730644editdlrm
mock_tk.cpython-37.pyc107820644editdlrm
template.cpython-37.opt-1.pyc10510644editdlrm
template.cpython-37.opt-2.pyc10160644editdlrm
template.cpython-37.pyc10510644editdlrm
test_autocomplete.cpython-37.opt-1.pyc91490644editdlrm
test_autocomplete.cpython-37.opt-2.pyc91000644editdlrm
test_autocomplete.cpython-37.pyc91490644editdlrm
test_autocomplete_w.cpython-37.opt-1.pyc12970644editdlrm
test_autocomplete_w.cpython-37.opt-2.pyc12460644editdlrm
test_autocomplete_w.cpython-37.pyc12970644editdlrm
test_autoexpand.cpython-37.opt-1.pyc39130644editdlrm
test_autoexpand.cpython-37.opt-2.pyc38650644editdlrm
test_autoexpand.cpython-37.pyc39130644editdlrm
test_browser.cpython-37.opt-1.pyc88460644editdlrm
test_browser.cpython-37.opt-2.pyc87190644editdlrm
test_browser.cpython-37.pyc88460644editdlrm
test_calltip.cpython-37.opt-1.pyc140380644editdlrm
test_calltip.cpython-37.opt-2.pyc138740644editdlrm
test_calltip.cpython-37.pyc141070644editdlrm
test_calltip_w.cpython-37.opt-1.pyc12490644editdlrm
test_calltip_w.cpython-37.opt-2.pyc12030644editdlrm
test_calltip_w.cpython-37.pyc12490644editdlrm
test_codecontext.cpython-37.opt-1.pyc114110644editdlrm
test_codecontext.cpython-37.opt-2.pyc113630644editdlrm
test_codecontext.cpython-37.pyc114110644editdlrm
test_colorizer.cpython-37.opt-1.pyc120330644editdlrm
test_colorizer.cpython-37.opt-2.pyc119850644editdlrm
test_colorizer.cpython-37.pyc120330644editdlrm
test_config.cpython-37.opt-1.pyc251610644editdlrm
test_config.cpython-37.opt-2.pyc244370644editdlrm
test_config.cpython-37.pyc251610644editdlrm
test_configdialog.cpython-37.opt-1.pyc409960644editdlrm
test_configdialog.cpython-37.opt-2.pyc400420644editdlrm
test_configdialog.cpython-37.pyc409960644editdlrm
test_config_key.cpython-37.opt-1.pyc108060644editdlrm
test_config_key.cpython-37.opt-2.pyc100490644editdlrm
test_config_key.cpython-37.pyc108060644editdlrm
test_debugger.cpython-37.opt-1.pyc10910644editdlrm
test_debugger.cpython-37.opt-2.pyc10470644editdlrm
test_debugger.cpython-37.pyc10910644editdlrm
test_debugger_r.cpython-37.opt-1.pyc7010644editdlrm
test_debugger_r.cpython-37.opt-2.pyc6540644editdlrm
test_debugger_r.cpython-37.pyc7010644editdlrm
test_debugobj.cpython-37.opt-1.pyc27100644editdlrm
test_debugobj.cpython-37.opt-2.pyc26650644editdlrm
test_debugobj.cpython-37.pyc27100644editdlrm
test_debugobj_r.cpython-37.opt-1.pyc11130644editdlrm
test_debugobj_r.cpython-37.opt-2.pyc10660644editdlrm
test_debugobj_r.cpython-37.pyc11130644editdlrm
test_delegator.cpython-37.opt-1.pyc10730644editdlrm
test_delegator.cpython-37.opt-2.pyc10260644editdlrm
test_delegator.cpython-37.pyc10730644editdlrm
test_editmenu.cpython-37.opt-1.pyc27490644editdlrm
test_editmenu.cpython-37.opt-2.pyc23690644editdlrm
test_editmenu.cpython-37.pyc27490644editdlrm
test_editor.cpython-37.opt-1.pyc66810644editdlrm
test_editor.cpython-37.opt-2.pyc66380644editdlrm
test_editor.cpython-37.pyc66810644editdlrm
test_filelist.cpython-37.opt-1.pyc13150644editdlrm
test_filelist.cpython-37.opt-2.pyc12700644editdlrm
test_filelist.cpython-37.pyc13150644editdlrm
test_format.cpython-37.opt-1.pyc202730644editdlrm
test_format.cpython-37.opt-2.pyc194810644editdlrm
test_format.cpython-37.pyc202730644editdlrm
test_grep.cpython-37.opt-1.pyc48910644editdlrm
test_grep.cpython-37.opt-2.pyc43600644editdlrm
test_grep.cpython-37.pyc48910644editdlrm
test_help.cpython-37.opt-1.pyc14070644editdlrm
test_help.cpython-37.opt-2.pyc13070644editdlrm
test_help.cpython-37.pyc14070644editdlrm
test_help_about.cpython-37.opt-1.pyc66980644editdlrm
test_help_about.cpython-37.opt-2.pyc60110644editdlrm
test_help_about.cpython-37.pyc66980644editdlrm
test_history.cpython-37.opt-1.pyc63160644editdlrm
test_history.cpython-37.opt-2.pyc61440644editdlrm
test_history.cpython-37.pyc63160644editdlrm
test_hyperparser.cpython-37.opt-1.pyc72720644editdlrm
test_hyperparser.cpython-37.opt-2.pyc71050644editdlrm
test_hyperparser.cpython-37.pyc72720644editdlrm
test_iomenu.cpython-37.opt-1.pyc17760644editdlrm
test_iomenu.cpython-37.opt-2.pyc17390644editdlrm
test_iomenu.cpython-37.pyc17760644editdlrm
test_macosx.cpython-37.opt-1.pyc38500644editdlrm
test_macosx.cpython-37.opt-2.pyc34570644editdlrm
test_macosx.cpython-37.pyc39200644editdlrm
test_mainmenu.cpython-37.opt-1.pyc11460644editdlrm
test_mainmenu.cpython-37.opt-2.pyc11000644editdlrm
test_mainmenu.cpython-37.pyc11460644editdlrm
test_multicall.cpython-37.opt-1.pyc17480644editdlrm
test_multicall.cpython-37.opt-2.pyc17020644editdlrm
test_multicall.cpython-37.pyc17480644editdlrm
test_outwin.cpython-37.opt-1.pyc53890644editdlrm
test_outwin.cpython-37.opt-2.pyc53460644editdlrm
test_outwin.cpython-37.pyc53890644editdlrm
test_parenmatch.cpython-37.opt-1.pyc38480644editdlrm
test_parenmatch.cpython-37.opt-2.pyc34610644editdlrm
test_parenmatch.cpython-37.pyc38480644editdlrm
test_pathbrowser.cpython-37.opt-1.pyc32930644editdlrm
test_pathbrowser.cpython-37.opt-2.pyc32450644editdlrm
test_pathbrowser.cpython-37.pyc32930644editdlrm
test_percolator.cpython-37.opt-1.pyc48740644editdlrm
test_percolator.cpython-37.opt-2.pyc48260644editdlrm
test_percolator.cpython-37.pyc48740644editdlrm
test_pyparse.cpython-37.opt-1.pyc138710644editdlrm
test_pyparse.cpython-37.opt-2.pyc138270644editdlrm
test_pyparse.cpython-37.pyc138710644editdlrm
test_pyshell.cpython-37.opt-1.pyc21460644editdlrm
test_pyshell.cpython-37.opt-2.pyc21020644editdlrm
test_pyshell.cpython-37.pyc21460644editdlrm
test_query.cpython-37.opt-1.pyc200410644editdlrm
test_query.cpython-37.opt-2.pyc190690644editdlrm
test_query.cpython-37.pyc200410644editdlrm
test_redirector.cpython-37.opt-1.pyc51180644editdlrm
test_redirector.cpython-37.opt-2.pyc50700644editdlrm
test_redirector.cpython-37.pyc51180644editdlrm
test_replace.cpython-37.opt-1.pyc68930644editdlrm
test_replace.cpython-37.opt-2.pyc68490644editdlrm
test_replace.cpython-37.pyc68930644editdlrm
test_rpc.cpython-37.opt-1.pyc16370644editdlrm
test_rpc.cpython-37.opt-2.pyc15970644editdlrm
test_rpc.cpython-37.pyc16370644editdlrm
test_run.cpython-37.opt-1.pyc115550644editdlrm
test_run.cpython-37.opt-2.pyc115080644editdlrm
test_run.cpython-37.pyc115550644editdlrm
test_runscript.cpython-37.opt-1.pyc13200644editdlrm
test_runscript.cpython-37.opt-2.pyc12740644editdlrm
test_runscript.cpython-37.pyc13200644editdlrm
test_scrolledlist.cpython-37.opt-1.pyc10800644editdlrm
test_scrolledlist.cpython-37.opt-2.pyc10310644editdlrm
test_scrolledlist.cpython-37.pyc10800644editdlrm
test_search.cpython-37.opt-1.pyc24780644editdlrm
test_search.cpython-37.opt-2.pyc24350644editdlrm
test_search.cpython-37.pyc24780644editdlrm
test_searchbase.cpython-37.opt-1.pyc52430644editdlrm
test_searchbase.cpython-37.opt-2.pyc51960644editdlrm
test_searchbase.cpython-37.pyc52430644editdlrm
test_searchengine.cpython-37.opt-1.pyc97370644editdlrm
test_searchengine.cpython-37.opt-2.pyc96880644editdlrm
test_searchengine.cpython-37.pyc97370644editdlrm
test_sidebar.cpython-37.opt-1.pyc119230644editdlrm
test_sidebar.cpython-37.opt-2.pyc117280644editdlrm
test_sidebar.cpython-37.pyc119230644editdlrm
test_squeezer.cpython-37.opt-1.pyc182650644editdlrm
test_squeezer.cpython-37.opt-2.pyc168980644editdlrm
test_squeezer.cpython-37.pyc182650644editdlrm
test_stackviewer.cpython-37.opt-1.pyc15400644editdlrm
test_stackviewer.cpython-37.opt-2.pyc14920644editdlrm
test_stackviewer.cpython-37.pyc15400644editdlrm
test_statusbar.cpython-37.opt-1.pyc15600644editdlrm
test_statusbar.cpython-37.opt-2.pyc15130644editdlrm
test_statusbar.cpython-37.pyc15600644editdlrm
test_text.cpython-37.opt-1.pyc63380644editdlrm
test_text.cpython-37.opt-2.pyc61610644editdlrm
test_text.cpython-37.pyc63380644editdlrm
test_textview.cpython-37.opt-1.pyc91380644editdlrm
test_textview.cpython-37.opt-2.pyc88450644editdlrm
test_textview.cpython-37.pyc91380644editdlrm
test_tooltip.cpython-37.opt-1.pyc52540644editdlrm
test_tooltip.cpython-37.opt-2.pyc50140644editdlrm
test_tooltip.cpython-37.pyc52540644editdlrm
test_tree.cpython-37.opt-1.pyc26430644editdlrm
test_tree.cpython-37.opt-2.pyc26020644editdlrm
test_tree.cpython-37.pyc26430644editdlrm
test_undo.cpython-37.opt-1.pyc41420644editdlrm
test_undo.cpython-37.opt-2.pyc39440644editdlrm
test_undo.cpython-37.pyc41420644editdlrm
test_warning.cpython-37.opt-1.pyc27090644editdlrm
test_warning.cpython-37.opt-2.pyc23790644editdlrm
test_warning.cpython-37.pyc27090644editdlrm
test_window.cpython-37.opt-1.pyc16050644editdlrm
test_window.cpython-37.opt-2.pyc15620644editdlrm
test_window.cpython-37.pyc16050644editdlrm
test_zoomheight.cpython-37.opt-1.pyc15110644editdlrm
test_zoomheight.cpython-37.opt-2.pyc14640644editdlrm
test_zoomheight.cpython-37.pyc15110644editdlrm
__init__.cpython-37.opt-1.pyc8540644editdlrm
__init__.cpython-37.opt-2.pyc4850644editdlrm
__init__.cpython-37.pyc8540644editdlrm
Edit: /opt/alt/python37/lib64/python3.7/idlelib/idle_test/__pycache__/htest.cpython-37.pyc (13874B)
B  fV;@s dZddlZddlmZddlZddlZddlm Z e ddddd d Z d id d Z d idd Z didd Zdddddd Zdddddd Zdidd Zdidd Zdddddd ggdd!d"d Zd#id$d Zdd%d&ed'hdd(d)d Zd*id+d Zd,ied-d Zd.id/d Zd0id1d Zd2id3d Zd4id5d Zd6id7d Zdd8d9d:dd;dd Z d?id@d Z!dAidBd Z"dCidDd Z#dEidFd Z$dGidHd Z%dIidJd Z&dKidLd Z'dMidNd Z(dOdPdQddRdSd Z)dTidUd Z*dVdWZ+e,dXkre+dS)YaRun human tests of Idle's window, dialog, and popup widgets. run(*tests) Create a master Tk window. Within that, run each callable in tests after finding the matching test spec in this file. If tests is empty, run an htest for each spec dict in this file after finding the matching callable in the module named in the spec. Close the window to skip or end the test. In a tested module, let X be a global name bound to a callable (class or function) whose .__name__ attribute is also X (the usual situation). The first parameter of X must be 'parent'. When called, the parent argument will be the root window. X must create a child Toplevel window (or subclass thereof). The Toplevel may be a test widget or dialog, in which case the callable is the corresponding class. Or the Toplevel may contain the widget to be tested or set up a context in which a test widget is invoked. In this latter case, the callable is a wrapper function that sets up the Toplevel and other objects. Wrapper function names, such as _editor_window', should start with '_'. End the module with if __name__ == '__main__': from idlelib.idle_test.htest import run run(X) To have wrapper functions and test invocation code ignored by coveragepy reports, put '# htest #' on the def statement header line. def _wrapper(parent): # htest # Also make sure that the 'if __name__' line matches the above. Then have make sure that .coveragerc includes the following. [report] exclude_lines = .*# htest # if __name__ == .__main__.: (The "." instead of "'" is intentional and necessary.) To run any X, this file must contain a matching instance of the following template, with X.__name__ prepended to '_spec'. When all tests are run, the prefix is use to get X. _spec = { 'file': '', 'kwds': {'title': ''}, 'msg': "" } file (no .py): run() imports file.py. kwds: augmented with {'parent':root} and passed to X as **kwds. title: an example kwd; some widgets need this, delete if not. msg: master window hints about testing the widget. Modules and classes not being tested at the moment: pyshell.PyShellEditorWindow debugger.Debugger autocomplete_w.AutoCompleteWindow outwin.OutputWindow (indirectly being tested with grep test) N) import_module) ScrollbarZ help_aboutzhelp_about testT)title_htestzaTest every button. Ensure Python, TK and IDLE versions are correctly displayed. [Close] to exit.)filekwdsmsgZ calltip_wzTyping '(' should display a calltip. Typing ') should hide the calltip. So should moving cursor out of argument area. Force-open-calltip does not work here. ZbrowserzInspect names of module, class(with superclass if applicable), methods and functions. Toggle nested items. Double clicking on items prints a traceback for an exception that is ignored.Z colorizerzThe text is sample Python code. Ensure components like comments, keywords, builtins, string, definitions, and break are correctly colored. The default color scheme is in idlelib/config-highlight.defZqueryzCustomize query.py RunzEnter with or [Run]. Print valid entry to Shell Arguments are parsed into a list Mode is currently restart True or False Close dialog with valid entry, , [Cancel], [X]Z configdialogZConfigDialogTestaIDLE preferences dialog. In the 'Fonts/Tabs' tab, changing font face, should update the font face of the text in the area below it. In the 'Highlighting' tab, try different color schemes. Clicking items in the sample program should update the choices above it. In the 'Keys', 'General' and 'Extensions' tabs, test settings of interest. [Ok] to close the dialog.[Apply] to apply the settings and and [Cancel] to revert all changes. Re-run the test to ensure changes made have persisted.Z dynoptionzSelect one of the many options in the 'old option set'. Click the button to change the option set. Select one of the many options in the 'new option set'.Zeditorz>Test editor functions of interest. Best to close editor first.Z config_keyzTest keybindingsz find-againzzz)ractionZcurrent_key_sequencesrzTest for different key modifier sequences. is invalid. No modifier key is invalid. Shift key with [a-z],[0-9], function key, move key, tab, space is invalid. No validity checking if advanced key binding entry is used.ZgrepzClick the 'Show GrepDialog' button. Test the various 'Find-in-files' functions. The results should be displayed in a new '*Output*' window. 'Right-click'->'Go to file/line' anywhere in the search results should open that file in a new EditorWindow.zHelp name and sourcetestabc)rZmenuitemfilepathZ used_namesraOEnter menu item name and help file path '', > than 30 chars, and 'abc' are invalid menu item names. '' and file does not exist are invalid path items. Any url ('www...', 'http...') is accepted. Test Browse with and without path, as cannot unittest. [Ok] or prints valid entry to shell [Cancel] or prints None to shellZiomenuaTest the following bindings. to open file from dialog. Edit the file. to print the file. to save the file. to save-as another file. to save-copy-as another file. Check that changes were saved by opening the file elsewhere.Zsidebara 1. Click on the line numbers and drag down below the edge of the window, moving the mouse a bit and then leaving it there for a while. The text and line numbers should gradually scroll down, with the selection updated continuously. 2. With the lines still selected, click on a line number above the selected lines. Only the line whose number was clicked should be selected. 3. Repeat step #1, dragging to above the window. The text and line numbers should gradually scroll up, with the selection updated continuously. 4. Repeat step #2, clicking a line number below the selection.Z multicallaThe following actions should trigger a print to console or IDLE Shell. Entering and leaving the text area, key entry, , , , , , and focusing out of the window are sequences to be tested.Z statusbarzjEnsure presence of multi-status bar below text area. Click 'Update Status' to change the multi-status textZdebugobjzDouble click on items upto the lowest level. Attributes of the objects and related information will be displayed side-by-side at each level.Z pathbrowserzTest for correct display of all paths in sys.path. Toggle nested items upto the lowest level. Double clicking on an item prints a traceback for an exception that is ignored.Z percolatoraAThere are two tracers which can be toggled using a checkbox. Toggling a tracer 'on' by checking it should print tracer output to the console or to the IDLE shell. If both the tracers are 'on', the output from the tracer which was switched 'on' later, should be printed first Test for actions like text entry, and removal.ZQueryzEnter somethingZGo)rmessageZtext0rzEnter with or [Ok]. Print valid entry to Shell Blank line, after stripping, is ignored Close dialog with valid entry, , [Cancel], [X]replacezClick the 'Replace' button. Test various replace options in the 'Replace dialog'. Click [Close] or [X] to close the 'Replace Dialog'.searchzClick the 'Search' button. Test various search options in the 'Search dialog'. Click [Close] or [X] to close the 'Search Dialog'.Z searchbasezKCheck the appearance of the base search dialog Its only action is to close.Z scrolledlistzYou should see a scrollable list of items Selecting (clicking) or double clicking an item prints the name to the console or Idle shell. Right clicking an item will display a popup.helpzPIf the help text displays, this works. Text is selectable. Window is scrollable.Z stackviewerzA stacktrace for a NameError exception. Expand 'idlelib ...' and ''. Check that exc_value, exc_tb, and exc_type are correct. ZtooltipzPPlace mouse cursor over both the buttons A tooltip should appear with some text.ZtreezDThe canvas is scrollable. Click on folders upto to the lowest level.ZundozClick [Undo] to undo any action. Click [Redo] to redo any action. Click [Dump] to dump the current state by printing to the console or the IDLE shell. Ztextviewz Test textviewa'The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. )rcontentsrzFTest for read-only property of text. Select text, scroll window, closeZ redirectorzEEvery text insert should be printed to the console or the IDLE shell.c stdddtjdd}|tj|ddjddd d d t |j d }j |j d |jddddjddddg|rx|D],}t |jd}|j|d<||fqWnbx`t D]R\}}|dr|dd|}|d<td|d}t|}||fqWtddfdd}d&fdd } d'fdd } tjd | d!} tjd"|d#| d$| d%| |dS)(Nz IDLE htestr )ZpadxZword)ZwrapbgZflatF)rZreliefZheightwidth)command)ZyscrollcommandrightyF)ZsideZfillexpandleftZbothT_specnamezidlelib.rcsztdkr\}|dd<d|djdddd d|d jd ddS) NrparentzTest rZnormal)statez1.0endrZdisabled)lenZ pack_forgetpopset configuredeleteinsert) test_spec)callable_object next_buttonroot test_kwds test_list test_nametext.next_testcs2f}yt|jWntk r,YnXdS)N)printresultAttributeError)_Zwidget)r*r-r1r2run_tests  zrun..run_testcs dS)N)Zdestroy)r7)r,r1r2closeszrun..closeZactive)Z textvariabledefaultrZNext)r0rz z )N)N)tkZTkrZ resizableZFrameZpackZTextr&ZcgetrZyviewZconfigr%globals__name__appenditemsendswithrgetattrZ StringVarZButtonZ focus_setZbindZmainloop) ZtestsZ frameLabelZ scrollbarr r)kdmodr3r8r9Zbuttonr1)r*r+r,r-r.r/r0r2runtsR           rE__main__)-__doc__Zidlelib.pyshellZidlelib importlibrtextwrapZtkinterr;Z tkinter.ttkrZ NoDefaultRootZAboutDialog_specZ_calltip_window_specZ_module_browser_specZ_color_delegator_specZCustomRun_specZConfigDialog_specZ_dyn_option_menu_specZ_editor_window_specZGetKeysDialog_specZ_grep_dialog_spec__file__ZHelpSource_specZ_io_binding_specdedentZ _linenumbers_drag_scrolling_specZ_multi_call_specZ_multistatus_bar_specZ_object_browser_specZ_path_browser_specZ_percolator_specZ Query_specZ_replace_dialog_specZ_search_dialog_specZ_searchbase_specZ_scrolled_list_specZshow_idlehelp_specZ_stack_viewer_specZ _tooltip_specZ_tree_widget_specZ_undo_delegator_specZViewWindow_specZ_widget_redirector_specrEr=r1r1r1r2Bs        H