Current File : //opt/imh-python/lib/python2.7/test/test_complex_args.pyo |
�
��Wc @ sd d d l Z d d l m Z d d l Z d e j f d � � YZ d � Z e d k r` e � n d S( i����N( t test_supportt ComplexArgsTestCasec B sk e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z RS( c G s | j | | � | � d S( N( t assertEqual( t selft funct expectedt args( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_complex_args.pyt check s c B s e j d � d Ud S( 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)
( t textwrapt dedent( R ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_complex_args.pyt test_func_parens_no_unpacking s c B s e j d � d Ud S( 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,))
( R R ( R ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_complex_args.pyt test_func_1 s c B s e j d � d Ud S( NsP
def f(((((x)),),)): return x
self.check(f, 2, ((2,),))
( R R ( R ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_complex_args.pyt test_func_2&