a  zeK @sddlmZddlmZedZddlZddlZeejj dudGdddej Z ej e ed \Z Zeejj dudGd d d ej Z ej e ed \ZZed kredS) )abc)utilzimportlib.machineryNzno reasonable builtin modulec@s8eZdZdZddZdZdZdZdZddZ ddZ dS) FindSpecTestsz&Test find_spec() for built-in modules.cCs\ttjj:|jjtjj}||||j dWdn1sN0YdS)Nzbuilt-in) runcacheBUILTINS good_name machineryBuiltinImporter find_spec assertTrueZ assertEqualoriginselffoundr[/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_importlib/builtin/test_finder.py test_modules zFindSpecTests.test_moduleNcCs d}|jj|}||dSN importlib)r r r assertIsNone)rnamespecrrr test_failure"szFindSpecTests.test_failurecCsRttjj0|jjtjjdg}||Wdn1sD0YdSNZpkg)rrrrr r r r)rrrrrtest_ignore_path(s zFindSpecTests.test_ignore_path) __name__ __module__ __qualname____doc__r test_packagetest_module_in_packagetest_package_in_packagetest_package_over_modulerrrrrrr sr)r c@s8eZdZdZddZdZZZdZddZ ddZ dS) FinderTestsz(Test find_module() for built-in modules.cCs^ttjj<|jjtjj}|||t|dWdn1sP0YdS)N load_module) rrrrr r find_moduler hasattrrrrrr:s zFinderTests.test_moduleNcCs|jjd}||dSr)r r r&rrloaderrrrrGszFinderTests.test_failurecCsRttjj0|jjtjjdg}||Wdn1sD0YdSr)rrrrr r r&rr(rrrrLs zFinderTests.test_ignore_path) rrrrrr r"r#r!rrrrrrr$5s  r$__main__)rrZimport_importlibr sysZunittestZskipIfrrr$rZ test_bothZFrozen_FindSpecTestsZSource_FindSpecTestsZFrozen_FinderTestsZSource_FinderTestsrmainrrrrs   '