#NEWLINE# def test_tray_one_item_with_sysicon( ) : #NEWLINE# #INDENT# "\n\tCreate a system tray with an icon, only one item in the menu\n\tThis code shouldn't block\n\t" #NEWLINE# menu_options = ( ( 'a label' , None , ( lambda event : print ( 'ass' ) ) ) , ) #NEWLINE# time_1 = time . perf_counter ( ) #NEWLINE# SystemTray ( ICON_FILE , TOOLTIP , menu_options ) #NEWLINE# time_2 = time . perf_counter ( ) #NEWLINE# assert ( ( menu_options - time_1 ) < 1 )