<s> import os <EOL> from test import test_support <EOL> test_support . import_module ( '<STR_LIT>' ) <EOL> test_support . requires ( '<STR_LIT>' ) <EOL> this_dir = os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> lib_tk_test = os . path . abspath ( os . path . join ( this_dir , os . path . pardir , <EOL> '<STR_LIT>' , '<STR_LIT:test>' ) ) <EOL> with test_support . DirsOnSysPath ( lib_tk_test ) : <EOL> import runtktests <EOL> def test_main ( enable_gui = False ) : <EOL> if enable_gui : <EOL> if test_support . use_resources is None : <EOL> test_support . use_resources = [ '<STR_LIT>' ] <EOL> elif '<STR_LIT>' not in test_support . use_resources : <EOL> test_support . use_resources . append ( '<STR_LIT>' ) <EOL> with test_support . DirsOnSysPath ( lib_tk_test ) : <EOL> test_support . run_unittest ( <EOL> * runtktests . get_tests ( text = False , packages = [ '<STR_LIT>' ] ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> test_main ( enable_gui = True ) </s>
