ó
…¾^Yc           @   s’   y d  d l  m  Z  Wn! e k
 r7 d  d l m  Z  n Xd  d l Z e  e e d ƒ rl e j d e ƒ Z n e j j Z d e	 f d „  ƒ  YZ
 d S(   iÿÿÿÿ(   t   StringIONt   hookimplt   hookwrappert   SessionWrapperc           B   s2   e  Z d  „  Z e d „  ƒ Z e j d „  ƒ Z RS(   c         C   s1   | |  _  t | d ƒ r$ d |  _ n	 d |  _ d  S(   Nt   testsfailedt   _testsfailed(   t   _sessiont   hasattrt   _attr(   t   selft   session(    (    s5   /tmp/pip-build-hU8Cw8/pytest-cov/pytest_cov/compat.pyt   __init__   s    	c         C   s   t  |  j |  j ƒ S(   N(   t   getattrR   R   (   R	   (    (    s5   /tmp/pip-build-hU8Cw8/pytest-cov/pytest_cov/compat.pyR      s    c         C   s   t  |  j |  j | ƒ d  S(   N(   t   setattrR   R   (   R	   t   value(    (    s5   /tmp/pip-build-hU8Cw8/pytest-cov/pytest_cov/compat.pyR      s    (   t   __name__t
   __module__R   t   propertyR   t   setter(    (    (    s5   /tmp/pip-build-hU8Cw8/pytest-cov/pytest_cov/compat.pyR      s   	(   R    t   ImportErrort   iot   pytestR   R   t   TrueR   t   markt   objectR   (    (    (    s5   /tmp/pip-build-hU8Cw8/pytest-cov/pytest_cov/compat.pyt   <module>   s   