��Qc@s�dZdZddlmZddlZddlZddlZddlmZddlZddlm Z ej
�d �Zd
�Ze
dkr�e�ndS(s,Main program for testing the infrastructure.s#Guido van Rossum <guido@python.org>i(tsupporti�Ni(tpytree(tdriverc
Csjtjd�}tj|dtj�}d}|j|dt�}t||�sYdGHntj dsjdSg}x�tj
D]�}tj
|}|dkszt|d�r�qzn|j
}|jd�r�|d }n|jd
�s�zntjdI|IJ|j|dt�}t||�rz|j|�qzqzWxtjD]�ytj|�}Wntjk
rpq>nXtjdI|Id
IJx�|D]�}|jd
�s�q�ntjdI|IJtjj||�}y|j|dt�}Wn"tjjk
r} dG| GHq�Xt||�r�|j|�q�q�Wq>W|sGdGHndGHx|D]}dG|GHqSWdS(NsGrammar.txttconverts
example.pytdebugs No diffs.it__file__s.pyci�s.pytParsingtScannings...sParseError:sNo problems. Congratulations!sProblems in following files:s***(Rtload_grammartDriverRRt
parse_filetTruetdifftsystargvtmodulestNonethasattrRtendswithtstderrtappendtpathtostlistdirterrortjointpgen2tparset
ParseError(
tgrtdrtfnttreetproblemstnametmodtdirtnamesterr((s6/sys/lib/python2.7/lib2to3/tests/pytree_idempotency.pytmainsX
cCs^tdd�}z|jt|��Wd|j�Xztjd|�SWdtjd�XdS(Nt@twsdiff -u %s @(topentwritetstrtcloseRtsystemtremove(RR tf((s6/sys/lib/python2.7/lib2to3/tests/pytree_idempotency.pyRPst__main__(t__doc__t
__author__tRRR
tloggingRRRtbasicConfigR'Rt__name__(((s6/sys/lib/python2.7/lib2to3/tests/pytree_idempotency.pyt<module>s
8
|