Edit File: runtktests.pyc
� ��7ec�����������@���s����d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�e�j�j�e�j�j �e �����Z�d����Z�e�e �d�d���Z�e �e �d�d���Z�e�d�k�r��e�j�j�e�������n��d�S(���s���� Use this module to get and run all tk tests. Tkinter tests should live in a package inside the directory where this file lives, like test_tkinter. Extensions also should live in packages following the same rule as above. i����Nc���������C���s.���x'�t��j�|����D]�}�|�d�k�r�t�Sq�Wt�S(���Ns���__init__.pys���__init__.pycs ���__init.pyo(���s���__init__.pys���__init__.pycs ���__init.pyo(���t���ost���listdirt���Truet���False(���t���patht���name(����(����s.���/usr/lib64/python2.7/lib-tk/test/runtktests.pyt ���is_package���s����c��� ������#���s-��d����x t��j�|����D]\�}�}�}�x4�t�|���D]&�}�|�d�d�k�r2�|�j�|���q2�q2�Wt�|���r�|�r�|�t�|����t�t��j���j�d�d���}�|�r��|�|�k�r��q�n��t����f�d����|���}�x[�|�D]P�}�y$�t �j �d�|�t������ |���VWq��t�j�j �k �r|�r���qq��Xq��Wq�q�Wd�S(���s����This will import and yield modules whose names start with test_ and are inside packages found in the path starting at basepath. If packages is specified it should contain package names that want their tests collected. s���.pyi����t���.t���/c������������s���|��j��d���o�|��j������S(���Nt���test_(���t ���startswitht���endswith(���t���x(���t���py_ext(����s.���/usr/lib64/python2.7/lib-tk/test/runtktests.pyt���<lambda>+���t����s���.%sN(���R����t���walkt���listt���removeR���t���lent���sept���replacet���filtert ���importlibt ���import_modulet���testt���test_supportt���ResourceDenied( ���t���basepatht���guit���packagest���dirpatht���dirnamest ���filenamest���dirnamet���pkg_nameR���(����(���R ���s.���/usr/lib64/python2.7/lib-tk/test/runtktests.pyt���get_tests_modules���s&����) c���������c���s����g��}�|��r�|�j��d���n��|�r2�|�j��d���n��xP�t�d�|�d�|���D]9�}�x0�|�D](�}�x�t�|�|�d���D]�}�|�Vqn�WqU�WqH�Wd�S(���s����Yield all the tests in the modules found by get_tests_modules. If nogui is True, only tests that do not require a GUI will be returned.t���tests_noguit ���tests_guiR���R���N(����(���t���appendR$���t���getattr(���t���textR���R���t���attrst���modulet���attrR���(����(����s.���/usr/lib64/python2.7/lib-tk/test/runtktests.pyt ���get_tests6���s���� t���__main__(���t���__doc__R����t���syst���unittestR���t���test.test_supportR���R���t���abspathR"���t���__file__t ���this_dir_pathR���R���t���NoneR$���R-���t���__name__R���t���run_unittest(����(����(����s.���/usr/lib64/python2.7/lib-tk/test/runtktests.pyt���<module>���s���