ó
'![c           @   s‹  d  d l  m Z d d! d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ	 d e f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d  d l Z y e j Z Wn* e k
 rZd e j f d „  ƒ  YZ n Xd e f d „  ƒ  YZ d e f d  „  ƒ  YZ d S("   iÿÿÿÿ(   t   Missingt   Aaaac           B   s    e  Z d  Z d „  Z d „  Z RS(   s	   old stylec         C   s   t  t |  ƒ j ƒ  d S(   t   hopN(   t   superR   R   (   t   self(    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s    c         C   s   t  t |  ƒ j ƒ  d  S(   N(   R   R   t   __init__(   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s    (   t   __name__t
   __module__t   __doc__R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s   	t   NewAaaac           B   s    e  Z d  Z d „  Z d „  Z RS(   s	   old stylec         C   s   t  t |  ƒ j ƒ  d S(   R   N(   R   R	   R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s    c         C   s   t  t |  ƒ j ƒ  d  S(   N(   R   R   R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s    (   R   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR	      s   	t   Py3kAaaac           B   s   e  Z d  Z d „  Z RS(   s	   new stylec         C   s   t  ƒ  j ƒ  d  S(   N(   R   R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR
      s   t   Py3kWrongSuperc           B   s   e  Z d  Z d „  Z RS(   s	   new stylec         C   s   t  t |  ƒ j ƒ  d  S(   N(   R   R	   R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR      s   t   WrongNameRegressionc           B   s   e  Z d  Z d „  Z RS(   s$    test a regression with the message c         C   s   t  t |  ƒ j ƒ  d  S(   N(   R   R    R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   $   s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   "   s   t   Getattrc           B   s   e  Z d  Z e Z RS(   s    crash (   R   R   R   R	   t   name(    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   '   s   t
   CrashSuperc           B   s   e  Z d  Z d „  Z RS(   s     test a crash with this checker c         C   s   t  t j |  ƒ j ƒ  d  S(   N(   R   R   R   R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   -   s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   +   s   t   Emptyc           B   s   e  Z d  Z RS(   s   Just an empty class.(   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   0   s   t   SuperDifferentScopec           B   s   e  Z d  Z e d „  ƒ Z RS(   sŒ   Don'emit bad-super-call when the super call is in another scope.
    For reference, see https://bitbucket.org/logilab/pylint/issue/403.
    c              s3   d t  f ‡  f d †  ƒ  Y‰  t t d ƒ j ƒ  d S(   s8   Test that a bad-super-call is not emitted for this case.t   FalsePositivec              s   e  Z d  Z ‡  f d †  Z RS(   s4   The following super is in another scope than `test`.c            s   t  ˆ  |  ƒ j | ƒ d  S(   N(   R   R   (   R   t   arg(   R   (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   <   s    (   R   R   R   R   (    (   R   (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   :   s   i   N(   R   R   t   objectR   (    (    (   R   sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyt   test7   s    (   R   R   R   t   staticmethodR   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   3   s   t   UnknownBasesc           B   s   e  Z d  Z d „  Z RS(   s*   Don't emit if we don't know all the bases.c         C   s=   t  t |  ƒ j ƒ  t  t |  ƒ j ƒ  t  t |  ƒ j ƒ  d  S(   N(   R   R   R   R   R    (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   C   s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   A   s   t	   BaseClassc           B   s    e  Z d  Z d „  Z d „  Z RS(   i*   c         C   s   | |  j  S(   N(   t   not_a_method(   R   t   param(    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyt   functionO   s    c         C   s   | S(   N(    (   R   t   attr(    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyt   __getattr__R   s    (   R   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   K   s   	t   InvalidSuperChecksc           B   s   e  Z d  „  Z RS(   c         C   s›   t  t |  ƒ j ƒ  t  t |  ƒ j ƒ  t  t |  ƒ j d ƒ t  t |  ƒ j ƒ  t  t |  ƒ j d d d ƒ t  t |  ƒ j d d ƒ t  t |  ƒ j ƒ  d  S(   Ni*   i   t   lala(   R   R   R   t   attribute_errorR   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   X   s    (   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   V   s   Nt   TimeoutExpiredc           B   s   e  Z d  „  Z RS(   c         C   s)   d } d |  _  t t |  ƒ j | ƒ d  S(   Niÿÿÿÿ(   t   timeoutR   R!   R   (   R   t
   returncode(    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   o   s    	(   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR!   n   s   t   SuperWithTypec           B   s   e  Z d  Z d „  Z RS(   s8   type(self) may lead to recursion loop in derived classesc         C   s   t  t |  ƒ |  ƒ j ƒ  d  S(   N(   R   t   typeR   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   w   s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR$   u   s   t   SuperWithSelfClassc           B   s   e  Z d  Z d „  Z RS(   s<   self.__class__ may lead to recursion loop in derived classesc         C   s   t  |  j |  ƒ j ƒ  d  S(   N(   R   t	   __class__R   (   R   (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR   |   s    (   R   R   R   R   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyR&   z   s   (    (   t   unknownR    R   R   R	   R
   R   R   R   R   R   R   R   R   R   t
   subprocessR!   t   AttributeErrort   CalledProcessErrorR$   R&   (    (    (    sB   lib/python2.7/site-packages/pylint/test/functional/super_checks.pyt   <module>   s&   		
