{G_Tc@sddlZddlmZmZmZedddlmZmZmZm Z m Z ej Z dej fdYZ dej fdYZd Zed krendS( iN(tcheck_warningst run_unittestt import_modulet_ctypes(t pythonapitcreate_string_buffertsizeoftbyreftc_doubletFormatDeprecationTestscBseZdZRS(c Csetdd}tdtf=tt|t|dtd|j|jdWdQXdS(Nt ids PyOS_ascii_formatd is deprecateds%+.10fg$@s+10.0000000000( RRtDeprecationWarningtPyOS_ascii_formatdRRRt assertEqualtvalue(tselftbuf((s3/usr/local/lib/python2.7/test/test_ascii_formatd.pyttest_format_deprecations   (t__name__t __module__R(((s3/usr/local/lib/python2.7/test/test_ascii_formatd.pyR st FormatTestscBseZdZRS(c Cstdd}ddddddddddg }tdtfXxP|D]H\}}tt|t||t||j|j||qNWWdQXdS(NR ids%fgY@s%gs%#gs%#.2ggS:^@gϮIyis%egX9v?s%+es%-es PyOS_ascii_formatd is deprecated(s%fgY@(s%ggY@(s%#ggY@(s%#.2ggY@(s%#.2ggS:^@(s%#.2ggϮIyi(s%egϮIyi(s%egX9v?(s%+egX9v?(s%-egX9v?( RRR R RRRR R(RRtteststformattval((s3/usr/local/lib/python2.7/test/test_ascii_formatd.pyt test_formats"   (RRR(((s3/usr/local/lib/python2.7/test/test_ascii_formatd.pyRscCstttdS(N(RR R(((s3/usr/local/lib/python2.7/test/test_ascii_formatd.pyt test_main6st__main__(tunittestttest.test_supportRRRtctypesRRRRRR tTestCaseR RRR(((s3/usr/local/lib/python2.7/test/test_ascii_formatd.pyts  (