ó
    Ú^íh}  ã                   ó$   • S r SSKJrJr  S rS rg)z&Tests buffering of execution requests.é   )Ú	TREE_PAGEÚEDITOR_PAGEc                 ó2  • U " S/5      nUR                  5         UR                  S[        S9  UR                  S5        UR                  S[        S9  UR                  5         UR	                  S5      nUR                  5       R                  5       S:X  d   eg)z@Test that execution request made while disconnected is buffered.zprint(1 + 2)z/() => { IPython.notebook.kernel.stop_channels }©Úpageé    z+() => { IPython.notebook.kernel.reconnect }Ú3N©Úwait_for_kernel_readyÚevaluater   Úexecute_cellÚwait_for_cell_outputÚget_inner_textÚstrip©Úprefill_notebookÚnotebook_frontendÚoutputss      Úc/home/james-whalen/.local/lib/python3.13/site-packages/nbclassic/tests/end_to_end/test_buffering.pyÚ test_kernels_buffer_without_connr      s’   € ñ )¨.Ð)9Ó:ÐØ×+Ñ+Ô-à×ÑÐPÔWbÐÑcØ×"Ñ" 1Ô%à×ÑÐLÔS^ÐÑ_Ø×+Ñ+Ô-à×4Ñ4°QÓ7€GØ×!Ñ!Ó#×)Ñ)Ó+¨sÓ2Ð2Ñ2ó    c                 ó¼  • U " / SQ5      nUR                  5         UR                  S[        S9  UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S[        S9  UR                  5         UR	                  S5      nUR                  5       R                  5       S	:X  d   eg
)z-Test that buffered requests execute in order.)Ú zk=1zk+=1zk*=3zprint(k)z.() => IPython.notebook.kernel.stop_channels();r   r   é   é   é   z*() => IPython.notebook.kernel.reconnect();Ú7Nr
   r   s      r   Ú$test_buffered_cells_execute_in_orderr      sÊ   € ñ )Ò)PÓQÐð ×+Ñ+Ô-Ø×ÑÐOÔVaÐÑbà×"Ñ" 1Ô%à×"Ñ" 1Ô%à×"Ñ" 1Ô%à×"Ñ" 1Ô%Ø×"Ñ" 1Ô%Ø×ÑÐKÔR]ÐÑ^Ø×+Ñ+Ô-à×4Ñ4°QÓ7€GØ×!Ñ!Ó#×)Ñ)Ó+¨sÓ2Ð2Ñ2r   N)Ú__doc__Úutilsr   r   r   r   © r   r   Ú<module>r"      s   ðÙ ,÷ *ò3ó 3r   