i'vddlZddlZddlZddlZddlZddlZ eZn#e$rej dZYnwxYwej ej edZ ddlZe ejd<ddlZddlZddlmZmZddlmZmZmZmZmZdZdZdZdZd ZGd d eZ Gd d eZ!d"d"d"d"gZ#d"ggggZ$gddggggZ%e ge!ggggZ&dZ'd-dZ(dZ)e*dkrr ejej ddd\Z+Z,n"#ej-$rZ.e)e.YdZ.[.ndZ.[.wwxYwe+D]\Z/Z0e/dkredz ZdZ1gZ2e,D]EZ3 e4e3Z1e1dkse1dkr e5d&#e5$re26e3YBwxYwe2r e)dee(e1\Z7Z8ere9edr!e:d e:d!e:d"e:d#e1e7;fzedkr8e7;d$kr e:d%e7;zee&Ze8re>j?@d'e8D]K\ZA\ZBZCd( ejDeBeCZEe>j?FeAd)eELe>j?@d*eGe8ze>Hs e:d+d,eejIee>HsejJddSdSdS).Nz../..) TestLoader TestRunner)CapturingFunctionTestCase CheckCleanRegisterPythonServer ShellTestCaseTestCasecddlm}| |dS#|wxYw)Nr GenTestScripts)r GenerateAllCleanAllr s CC:\PYTHON\_runtimes\venv\Lib\site-packages\win32com/test/testall.pyGenerateAndRunOldStyler&s^         " !!!!!!!!!sA cddl}ddl}tj|jrsi$ 4(( xma.?.A.A)BCC   1  2N]N#$ Kr"ctj|}|}|}|r)t ||d||fzt|S)NzExecuting '%s' failed (%d))rpopenreadstripcloserfailr*)cmdtestcasefr(rcs rExecuteSilentlyIfOKr5Ksq  A 6688>>  D B @ d  2c2Y>???  % %%r"ceZdZdZdZdS) PyCOMTestTcrttjtjt ddddtjtjt d}tjd|d}t||}dS)Nz..serversztest_pycomtest.pyzPython.Test.PyCOMTestztestPyComTest.py "z " -q 2>&1) rrrjoindirname__file__ this_filesys executabler5)selffnamer1r(s rtestitzPyCOMTest.testitYs  GLL))4&1) win32com.testrLrr=r?r@rrr;r<r>r5)rArLpythonrBr1s rrCzPippoTest.testitls~......\24GHHH RW__Y77HH((5(((C&&&&&r"N)rDrErFrCrHr"rrJrJks# ' ' ' ' 'r"rJztestIterators testvbscript_regexp testStorage testStreams testWMI policySemantics testShell testROT testxslt testCollections errorSemantics.test testArrays testClipboard testConversionErrors zL testAXScript testDictionary testServers testvb testMarshal zwtestMSOffice.TestAll testMSOfficeEvents.test testAccess.test testExplorer.TestAll testExchange.test ztestmakepy.TestAll z*win32com.directsound.test.ds_test )z/cscript.exe /nologo //E:vbscript testInterp.vbszVBScript test worked OK)z3cscript.exe /nologo //E:vbscript testDictionary.vbsz2VBScript has successfully tested Python.Dictionaryc^|ddkr|d\}}n|}d}d|z} t|tj|}n8#||tjddfYdSxYw|dnt||}||fS)N.rzwin32com.test.)NN)findsplit __import__r?modulesappendexc_infogetattr) test_nameimport_failuresmod_name func_name fq_mod_namemodfuncs rget_test_mod_and_funcr`s~~cQ'ooc22)) "X-K;k+&#,..!*<=>>>zz$44'#y*A*AD 9s !A2Bc tj}g}t}ttD];}t |D]}t ||\}}|td|d|t||}n:t|dr| }n| |}| dks Jd|| |t|D](\} } | t| | )t |D]4} | tj| 5=ttD]}t&|D]} t)|n7#||t-jddfYGxYwt,j|}t|dr| }n| |}| dks Jd|| |ь||fS)Nzno such module '') descriptionsuiterzNo tests loaded from rQ)unittest TestSuiterrange testLevelunittest_modulesr`ModuleNotFoundErrorrhasattrrdloadTestsFromModulecountTestCasesaddTestoutput_checked_programsrcustom_test_casesdefaultTestLoaderloadTestsFromTestCaseunittest_other_modulesrTrVr?rWrU) test_levelrdrZloaderir[r^r_testr1output test_classs rmake_test_suiterzs   EO \\F 9  XX(+ H-hHHIC{)*HX*H*H*HIII08LLL3((;99;;DD!55c::D&&((1,,,.Mc.M.M,,, MM$    215 6 6KC MM-V44 5 5 5 5+A. X XJ MM(4JJ:VV W W W W X9    .q1 H 8$$$$ &&#,..!2D'EFFF+h'CsG$$ 7yy{{11#66&&((1,,,.Mc.M.M,,, MM$      / !!s F++2Gct|ttdtdtdtdtjddS)Nzwin32com test suitezusage: testall [-v] test_levelz? where test_level is an integer 1-3. Level 1 tests are quick,z7 level 2 tests invoke Word, IE etc, level 3 take ages!r )rr?exit)whys rusager~sc #JJJ GGG     *+++ KLLL CDDDHQKKKKKr"__main__vz-vrQzOnly levels 1-4 are supportedz Test names are not supported yetgettotalrefcountz;This is a debug build - memory leak tests will also be run.z8These tests may take *many* minutes to run - be patient!z5(running from python.exe will avoid these leak tests)z4Executing level %d tests - %d test cases will be runF|)rz8*** The following test modules could not be imported ***r$z: z#*** %d test(s) could not be run ***z********************z- unittest tests FAILED)r )Kgetoptrr&r? tracebackrer=r> NameErrorargvrabspathr;win32com_src_dirr__path__ pythoncomwin32com.clientpywin32_testutilrrwin32com.test.utilrrrrr rrr!r*r5r7rJrSrirsrorpr`rzr~rDoptsargserrorr}optvalrh test_namesargint ValueErrorrVrdrZrkrrm testRunnerrun testResultstreamwritelnr[exc_typeexc_valformat_exception_onlydescwritelen wasSuccessfulCoUninitializer|rHr"rrs II III7??27<< 7#C#CDD(!33333333  """ ( ( (   &&&........* ' ' ' ' ' ' ' '" EGG  EGG EGG EGG-: EGG  W (    $("("("("V z"V]38ABB<55 dd < c S $;; NIIJ## #CI1}} A  j!@AAA!. # # #   c " " " " " #2 0111N,_Y77E? 0 73* + + K EO P P P EL M M M EI J J J  B%..001 2    >>e2244r99 E#,,... / / /i000J&&J  !! F   .= ; ; )H)x99