golden hour
/opt/alt/python27/lib64/python2.7/idlelib/idle_test
⬆️ Go Up
Upload
File/Folder
Size
Actions
README.txt
5.36 KB
Del
OK
__init__.py
650 B
Del
OK
__init__.pyc
941 B
Del
OK
__init__.pyo
941 B
Del
OK
htest.py
13.46 KB
Del
OK
htest.pyc
12.36 KB
Del
OK
htest.pyo
12.36 KB
Del
OK
mock_idle.py
1.56 KB
Del
OK
mock_idle.pyc
2.94 KB
Del
OK
mock_idle.pyo
2.94 KB
Del
OK
mock_tk.py
11.3 KB
Del
OK
mock_tk.pyc
12.42 KB
Del
OK
mock_tk.pyo
12.42 KB
Del
OK
test_autocomplete.py
4.81 KB
Del
OK
test_autocomplete.pyc
5.98 KB
Del
OK
test_autocomplete.pyo
5.98 KB
Del
OK
test_autoexpand.py
4.03 KB
Del
OK
test_autoexpand.pyc
4.85 KB
Del
OK
test_autoexpand.pyo
4.85 KB
Del
OK
test_calltips.py
6.97 KB
Del
OK
test_calltips.pyc
12.47 KB
Del
OK
test_calltips.pyo
12.47 KB
Del
OK
test_config_name.py
2.41 KB
Del
OK
test_config_name.pyc
4.08 KB
Del
OK
test_config_name.pyo
4.08 KB
Del
OK
test_configdialog.py
782 B
Del
OK
test_configdialog.pyc
1.68 KB
Del
OK
test_configdialog.pyo
1.68 KB
Del
OK
test_delegator.py
1.26 KB
Del
OK
test_delegator.pyc
1.33 KB
Del
OK
test_delegator.pyo
1.33 KB
Del
OK
test_editmenu.py
3.09 KB
Del
OK
test_editmenu.pyc
4.46 KB
Del
OK
test_editmenu.pyo
4.46 KB
Del
OK
test_formatparagraph.py
14.01 KB
Del
OK
test_formatparagraph.pyc
14.36 KB
Del
OK
test_formatparagraph.pyo
14.36 KB
Del
OK
test_grep.py
2.7 KB
Del
OK
test_grep.pyc
3.81 KB
Del
OK
test_grep.pyo
3.81 KB
Del
OK
test_helpabout.py
1.57 KB
Del
OK
test_helpabout.pyc
2.38 KB
Del
OK
test_helpabout.pyo
2.38 KB
Del
OK
test_hyperparser.py
5.55 KB
Del
OK
test_hyperparser.pyc
6.78 KB
Del
OK
test_hyperparser.pyo
6.78 KB
Del
OK
test_idlehistory.py
5.37 KB
Del
OK
test_idlehistory.pyc
8.28 KB
Del
OK
test_idlehistory.pyo
8.28 KB
Del
OK
test_io.py
9.28 KB
Del
OK
test_io.pyc
11.67 KB
Del
OK
test_io.pyo
11.67 KB
Del
OK
test_parenmatch.py
3.73 KB
Del
OK
test_parenmatch.pyc
5.53 KB
Del
OK
test_parenmatch.pyo
5.53 KB
Del
OK
test_pathbrowser.py
940 B
Del
OK
test_pathbrowser.pyc
1.5 KB
Del
OK
test_pathbrowser.pyo
1.5 KB
Del
OK
test_rstrip.py
1.58 KB
Del
OK
test_rstrip.pyc
1.78 KB
Del
OK
test_rstrip.pyo
1.78 KB
Del
OK
test_searchdialogbase.py
5.73 KB
Del
OK
test_searchdialogbase.pyc
6.87 KB
Del
OK
test_searchdialogbase.pyo
6.87 KB
Del
OK
test_searchengine.py
11.22 KB
Del
OK
test_searchengine.pyc
12.81 KB
Del
OK
test_searchengine.pyo
12.81 KB
Del
OK
test_text.py
6.59 KB
Del
OK
test_text.pyc
8.2 KB
Del
OK
test_text.pyo
8.2 KB
Del
OK
test_textview.py
2.74 KB
Del
OK
test_textview.pyc
4.6 KB
Del
OK
test_textview.pyo
4.6 KB
Del
OK
test_warning.py
2.69 KB
Del
OK
test_warning.pyc
3.31 KB
Del
OK
test_warning.pyo
3.31 KB
Del
OK
test_widgetredir.py
4.08 KB
Del
OK
test_widgetredir.pyc
6.49 KB
Del
OK
test_widgetredir.pyo
6.49 KB
Del
OK
Edit: test_formatparagraph.pyo
� T~gc @ s7 d d l Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d d d � � YZ d d d � � YZ d e j f d � � YZ e d k r3e j d d d d � n d S( i����N( t FormatParagraph( t EditorWindow( t Tkt Text( t requirest Is_Get_Testc B sG e Z d Z d Z d Z d Z d Z d Z d � Z d � Z d � Z RS( s Test the is_ and get_ functionss # This is a comments This is not a comments # This is a comment s # This is a comments This is not a commentc C sI | j t j d � � | j t j d � � | j t j | j � � d S( Nt s ( t assertTruet fpt is_all_whitet assertFalset test_comment( t self( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt test_is_all_white s c C sq | j } | t j | j � d � | t j | j � d � | t j | j � d � | t j | j � d � d S( NR s ( t assertEqualR t get_indentR t trailingws_commentt leadingws_commentt leadingws_nocomment( R t Equal( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt test_get_indent s c C s� | j } | t j | j � d � | t j | j � d � | t j | j � d � | t j | j � d � | t j | j � d � d S( Nt #s #s R ( R R t get_comment_headerR R R R t test_nocomment( R R ( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt test_get_comment_header s ( t __name__t __module__t __doc__R R R R R R R R ( ( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyR s t FindTestc B s8 e Z d Z e d � � Z d � Z d � Z d � Z RS( s` Test the find_paragraph function in FormatParagraph. Using the runcase() function, find_paragraph() is called with 'mark' set at multiple indexes before and inside the test paragraph. It appears that code with the same indentation as a quoted string is grouped as part of the same paragraph, which is probably incorrect behavior. c C s d d l m } | � | _ d S( Ni����( R ( t idlelib.idle_test.mock_tkR t text( t clsR ( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt setUpClass2 s c C s� | j } | j d | � x� t d | � D]v } t | j d | � j d � d � } xG d | d | f D]2 } d | | f } | j t j | | � | � qi Wq) W| j d d � d S( Ns 1.0i s %d.endt .i i s %d.%dt end( R t insertt ranget intt indext splitR R t find_paragrapht delete( R t inserttextt stoplinet expectedR t linet linelengtht colt tempindex( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt runcase7 s &$c C sd d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d S( Ns; # Comment block with no blank lines before # Comment line i s 1.0s 3.0R i i: sG # Comment block with whitespace line before and after # Comment line i s 2.0s 4.0i iF sS # Indented comment block with whitespace before and after # Comment line s #iR s # Single line comment i s4 # Single line comment with leading whitespace i3 s0 # Comment immediately followed by code x = 42 i( s= # Indented comment immediately followed by code x = 42 i5 s= # Comment immediately followed by indented code x = 42 i1 ( R1 ( R t comment( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt test_find_commentD s &&&&&&&c C s� d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d } | j | d d d d | d d !f � d S( Ns6 """String with no blank lines before String line """ i s 1.0s 4.0R i i5 sC """String with whitespace line before and after String line. """ i s 2.0s 5.0i iB sV """Indented string with whitespace before and after Comment string. """ s iU s """Single line string.""" i s 3.0i s8 """Single line string with leading whitespace.""" i7 ( R1 ( R t teststring( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt test_find_paragraphz s &&&&( R R R t classmethodR R1 R3 R5 ( ( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyR ( s 6t ReformatFunctionTestc B s e Z d Z d � Z RS( s? Test the reformat_paragraph function without the editor window.c C s* | j } t j } d } | | d d � d � | | d d � d � | | | d � d � | | | d � d � | | | d � d � | | | d � d � | | | d � d � d } | | | d � d � | | | d � d � | | | d � d � | | | d � d � | | | d � d � d S( Ns O hello worldt i s Hello worldi s Hello worlds O hello worldi i s O hello worldi i s O hello worlds O hello worlds O hello world( R R t reformat_paragraph( R R t reformt hw( ( sK /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_formatparagraph.pyt test_reformat_paragraph� s ( R R R R<