#NEWLINE# def test_clean_exit( ) : #NEWLINE# #INDENT# dsk = { #NEWLINE# #INDENT# 'a' : ( ( lambda : ( 1 / 0 ) ) , ) , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# with ProgressBar ( ) as pbar : #NEWLINE# #INDENT# get ( dsk , 'a' ) #NEWLINE# #UNINDENT# #UNINDENT# except ZeroDivisionError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# assert ( not pbar . _running ) #NEWLINE# assert ( not pbar . _timer . is_alive ( ) )