a ze}@sBddlZddlZddlmZGdddejZedkr>edS)N)supportc@seZdZddZddZdS) FLUFLTestscCsd}t|dddtj|t&}t|dddtjWdn1sP0Y|t|jd| d|jj | |jj d| |jjd | |jjtrd nd dS) Nz-from __future__ import barry_as_FLUFL 2 {0} 3<> exec!= z,with Barry as BDFL, use '<>' instead of '!='z2 != 3)compileformat __future__ZCO_FUTURE_BARRY_AS_BDFL assertRaises SyntaxError assertRegexstr exceptionassertIntext assertEqualfilenameZ assertTruelinenooffsetruse_old_parserselfcodecmrC/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_flufl.pytest_barry_as_bdfls " zFLUFLTests.test_barry_as_bdflcCsd}t|ddd|t"}t|dddWdn1sH0Y|t|jd|d|jj| |jj d| |jj d | |jj t rd nd dS) Nz2 {0} 3rrrrrzinvalid syntaxz2 <> 3r r )r r rrrrrrrrrrrrrrrrr test_guido_as_bdfls 0zFLUFLTests.test_guido_as_bdflN)__name__ __module__ __qualname__r!r#rrrr rsr__main__)rZunittesttestrZTestCaserr$mainrrrr s  !