Current File : //opt/RZpython2/lib/python2.7/lib2to3/tests/pytree_idempotency.pyo
�
��#ec@s�dZdZddlmZddlZddlZddlZddlmZddlZddlm	Z	ej
�d	�Zd
�Ze
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�qzntjdI|IJ|j|dt�}t||�rz|j|�qzqzWxtjD]�}ytj|�}Wntjk
rpq>nXtjdI|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***(Rtload_grammartDriverRRt
parse_filetTruetdifftsystargvtmodulestNonethasattrRtendswithtstderrtappendtpathtostlistdirterrortjointpgen2tparset
ParseError(
tgrtdrtfnttreetproblemstnametmodtdirtnamesterr((s@/opt/RZpython2/lib/python2.7/lib2to3/tests/pytree_idempotency.pytmainsX

	



cCs^tdd�}z|jt|��Wd|j�Xztjd|�SWdtjd�XdS(Nt@twsdiff -u %s @(topentwritetstrtcloseRtsystemtremove(RR tf((s@/opt/RZpython2/lib/python2.7/lib2to3/tests/pytree_idempotency.pyRPst__main__(t__doc__t
__author__tRRR
tloggingRRRtbasicConfigR'Rt__name__(((s@/opt/RZpython2/lib/python2.7/lib2to3/tests/pytree_idempotency.pyt<module>s
	8