ó {G_Tc@sdddlZddlmZddlZdejfd„ƒYZd„Zedkr`eƒndS(iÿÿÿÿN(t test_supporttComplexArgsTestCasecBskeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z RS( cGs|j||Œ|ƒdS(N(t assertEqual(tselftfunctexpectedtargs((s2/usr/local/lib/python2.7/test/test_complex_args.pytcheckscBsejdƒdUdS(Ns¶ def f(((((x))))): return x self.check(f, 1, 1) # Inner parens are elided, same as: f(x,) def f(((x)),): return x self.check(f, 2, 2) (ttextwraptdedent(R((s2/usr/local/lib/python2.7/test/test_complex_args.pyttest_func_parens_no_unpackingscBsejdƒdUdS(Ns def f(((((x),)))): return x self.check(f, 3, (3,)) def f(((((x)),))): return x self.check(f, 4, (4,)) def f(((((x))),)): return x self.check(f, 5, (5,)) def f(((x),)): return x self.check(f, 6, (6,)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_func_1s cBsejdƒdUdS(NsP def f(((((x)),),)): return x self.check(f, 2, ((2,),)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_func_2&scBsejdƒdUdS(NsV def f((((((x)),),),)): return x self.check(f, 3, (((3,),),)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_func_3,scBsejdƒdUdS(Nsh def f((((((x)),),),), a, b, c): return x, a, b, c self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7) def f(((((((x)),)),),), a, b, c): return x, a, b, c self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7) def f(a, b, c, ((((((x)),)),),)): return a, b, c, x self.check(f, (9, 8, 7, 3), 9, 8, 7, (((3,),),)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyttest_func_complex2s cBsejdƒdUdS(Ns² f = lambda (((((x))))): x self.check(f, 1, 1) # Inner parens are elided, same as: f(x,) f = lambda ((x)),: x self.check(f, 2, 2) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyttest_lambda_parens_no_unpackingAscBsejdƒdUdS(Ns  f = lambda (((((x),)))): x self.check(f, 3, (3,)) f = lambda (((((x)),))): x self.check(f, 4, (4,)) f = lambda (((((x))),)): x self.check(f, 5, (5,)) f = lambda (((x),)): x self.check(f, 6, (6,)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_lambda_1Js cBsejdƒdUdS(NsO f = lambda (((((x)),),)): x self.check(f, 2, ((2,),)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_lambda_2VscBsejdƒdUdS(NsU f = lambda ((((((x)),),),)): x self.check(f, 3, (((3,),),)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_lambda_3\scBsejdƒdUdS(Nse f = lambda (((((x)),),),), a, b, c: (x, a, b, c) self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7) f = lambda ((((((x)),)),),), a, b, c: (x, a, b, c) self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7) f = lambda a, b, c, ((((((x)),)),),): (a, b, c, x) self.check(f, (9, 8, 7, 3), 9, 8, 7, (((3,),),)) (RR (R((s2/usr/local/lib/python2.7/test/test_complex_args.pyttest_lambda_complexbs ( t__name__t __module__RR R R R RRRRRR(((s2/usr/local/lib/python2.7/test/test_complex_args.pyRs     cCs6tjdtfdtfƒtjtƒWdQXdS(Ns*tuple parameter unpacking has been removeds(parenthesized argument names are invalid(Rtcheck_py3k_warningst SyntaxWarningt run_unittestR(((s2/usr/local/lib/python2.7/test/test_complex_args.pyt test_mainos t__main__(tunittestttestRRtTestCaseRRR(((s2/usr/local/lib/python2.7/test/test_complex_args.pyts  i