ó
|‰ãW#  c           @   s‰  d  d l  Z d  d l j j Z d  d l Z d  d l Z d  d l Z d  d l	 m
 Z
 d  d l Z d  d l Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z e j j d d g ƒ d „  ƒ Z e e j d k ƒ Z d d d „  ƒ  YZ d „  Z e j j  e j d k d d ƒd „  ƒ Z! e j j  e j d k d d ƒd „  ƒ Z" d „  Z# d „  Z$ d S(   iÿÿÿÿN(   t   terminalwriterc          C   s  t  j j }  t j } |  | k } | só t j d | f d |  | f ƒ i d t j ƒ  k si t j |  ƒ rx t j	 |  ƒ n d d 6d t j ƒ  k s  t j t ƒ r¯ t j	 t ƒ n d d 6t j	 | ƒ d 6} d i | d
 6} t
 t j | ƒ ƒ ‚ n  d  } } d  S(   Ns   ==s:   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.get_terminal_width
}t   xt   py0R    t   py2t   py4t    s   assert %(py6)st   py6(   s   ==(   s:   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.get_terminal_width
}s   assert %(py6)s(   t   pyt   iot   get_terminal_widthR    t
   @pytest_art   _call_reprcomparet   @py_builtinst   localst   _should_repr_global_namet	   _safereprt   AssertionErrort   _format_explanationt   None(   R   t   @py_assert3t   @py_assert1t   @py_format5t   @py_format7(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_get_terminal_width   s    	   £   c            s  t  j j d ƒ } d d  l } g  ‰  |  j | d ‡  f d †  ƒ y t j ƒ  Wn t | j f k
 rj n Xt	 ˆ  ƒ } d } | | k } | skt
 j d | f d | | f ƒ i d t j ƒ  k sÑ t
 j t	 ƒ rà t
 j t	 ƒ n d d	 6d
 t j ƒ  k st
 j ˆ  ƒ rt
 j ˆ  ƒ n d
 d 6t
 j | ƒ d 6t
 j | ƒ d 6} d i | d 6} t t
 j | ƒ ƒ ‚ n  d  } } } ˆ  d d } d }	 | |	 k } | st
 j d | f d | |	 f ƒ i t
 j | ƒ d 6t
 j |	 ƒ d 6}
 d i |
 d 6} t t
 j | ƒ ƒ ‚ n  d  } } }	 d  S(   Nt   fcntliÿÿÿÿt   ioctlc             s   ˆ  j  |  ƒ S(   N(   t   append(   t   args(   t   l(    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   <lambda>   s    i   s   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)st   lenR   R   t   py1t   py3R   R   s   assert %(py8)st   py8i    s   %(py1)s == %(py4)sR   s   assert %(py6)s(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   R   t   testt   importorskipt   structt   setattrR    t   _getdimensionst	   TypeErrort   errorR   R
   R   R   R   R   R   R   R   R   (   t   monkeypatchR   R$   t   @py_assert2t   @py_assert5t   @py_assert4R   t   @py_format9t   @py_assert0R   R   (    (   R   sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_getdimensions   s0        ³       E   c         C   s@  t  j j d ƒ } |  j | d d „  ƒ |  j d d ƒ t j } | ƒ  } d } | | k } | st j d | f d | | f ƒ i d	 t	 j
 ƒ  k s¤ t j t ƒ r³ t j t ƒ n d	 d
 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d } } } } |  j d d t ƒd S(   s'    Dummy test for get_terminal_width
    R   R   c          W   s
   t  d ƒ S(   NR   (   t   int(   R   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR      s    t   COLUMNSt   42i*   s   ==sQ   %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.get_terminal_width
}()
} == %(py7)sR    R   R   R   t   py7R   s   assert %(py9)st   py9t   raisingN(   s   ==(   sQ   %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.get_terminal_width
}()
} == %(py7)ss   assert %(py9)s(   R   R"   R#   R%   t   setenvR    R	   R
   R   R   R   R   R   R   R   R   t   delenvt   False(   R)   R   R   R   t   @py_assert6R+   t   @py_format8t   @py_format10(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_terminal_width_COLUMNS   s    	 	    Œ   c         C   s  |  j  t d d „  ƒ |  j d d t ƒt j j ƒ  } | j } d } | | k } | sþ t j	 d | f d | | f ƒ i d t
 j ƒ  k s› t j | ƒ rª t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(   NR&   c           S   s   d d S(   Ni    (    (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   "   s    R1   R5   iP   s   ==s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)st   twR   R   t   py5R   s   assert %(py7)sR3   (   s   ==(   s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)ss   assert %(py7)s(   R%   R    R7   R8   R   R   t   TerminalWritert	   fullwidthR
   R   R   R   R   R   R   R   R   (   R)   R=   R   R,   R   t   @py_format6R:   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt#   test_terminalwriter_defaultwidth_80!   s    	    |   c         C   s  |  j  t d d „  ƒ |  j d d t ƒt j j ƒ  } | j } d } | | k } | sþ t j	 d | f d | | f ƒ i d t
 j ƒ  k s› t j | ƒ rª t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(   NR&   c           S   s   d S(   Ni
   (   i
   i
   (    (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   (   s    R1   R5   iP   s   ==s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)sR=   R   R   R>   R   s   assert %(py7)sR3   (   s   ==(   s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)ss   assert %(py7)s(   R%   R    R7   R8   R   R   R?   R@   R
   R   R   R   R   R   R   R   R   (   R)   R=   R   R,   R   RA   R:   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt'   test_terminalwriter_getdimensions_bogus'   s    	    |   c         C   s  |  j  t d d „  ƒ |  j d d ƒ t j j ƒ  } | j } d } | | k } | sû t j d | f d | | f ƒ i d t	 j
 ƒ  k s˜ t j | ƒ r§ t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(   NR&   c           S   s   d S(   Ni    (   i    i    (    (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   /   s    R1   R2   i*   s   ==s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)sR=   R   R   R>   R   s   assert %(py7)sR3   (   s   ==(   s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)ss   assert %(py7)s(   R%   R    R6   R   R   R?   R@   R
   R   R   R   R   R   R   R   R   (   R)   R=   R   R,   R   RA   R:   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt'   test_terminalwriter_getdimensions_emacs-   s    	    |   c         C   sý   |  j  t d d „  ƒ t j j ƒ  } | j } d } | | k } | së t j d | f d | | f ƒ i d t j	 ƒ  k sˆ t j
 | ƒ r— t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(   NR	   c           S   s   d S(   Ni*   (    (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   5   s    i*   s   ==s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)sR=   R   R   R>   R   s   assert %(py7)sR3   (   s   ==(   s1   %(py2)s
{%(py2)s = %(py0)s.fullwidth
} == %(py5)ss   assert %(py7)s(   R%   R    R   R   R?   R@   R
   R   R   R   R   R   R   R   R   (   R)   R=   R   R,   R   RA   R:   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt"   test_terminalwriter_computes_width4   s    	    |   c          C   sò   t  j j d t ƒ }  d } t |  | ƒ } | sä d d i d t j ƒ  k s[ t j t ƒ rj t j	 t ƒ n d d 6d t j ƒ  k s’ t j |  ƒ r¡ t j	 |  ƒ n d d 6t j	 | ƒ d 6t j	 | ƒ d	 6} t
 t j | ƒ ƒ ‚ n  d  } } d  S(
   Nt   stringioR   s5   assert %(py5)s
{%(py5)s = %(py0)s(%(py1)s, %(py3)s)
}t   hasattrR   R=   R   R    R>   (   R   R   R?   t   TrueRG   R   R   R
   R   R   R   R   R   (   R=   R*   R,   RA   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt)   test_terminalwriter_default_instantiation9   s       œ  c         C   s¸  |  j  t d i d d 6d d 6ƒ d d d „  ƒ  Y} |  j  t d | ƒ  ƒ z\t j } | j } | ƒ  } | sû d d	 i d
 t j ƒ  k s™ t j t ƒ r¨ t j	 t ƒ n d
 d 6t j	 | ƒ d 6t j	 | ƒ d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } } t j j ƒ  } | j } | } | s›d d i d t j ƒ  k sYt j | ƒ rht j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } Wd  |  j ƒ  Xd  S(   Nt   environt   dumbt   TERMR   t   PATHt   MyFilec           B   s   e  Z e Z d  „  Z RS(   c         S   s   t  S(   N(   RH   (   t   self(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   isattyA   s    (   t   __name__t
   __module__R8   t   closedRP   (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyRN   ?   s   t   stdouts]   assert %(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.stdout
}.isatty
}()
}t   sysR   R   R   R   s1   assert not %(py2)s
{%(py2)s = %(py0)s.hasmarkup
}R=   (    (   R%   t   osRU   RT   RP   R   R   R
   R   R   R   R   R   R   R   R?   t	   hasmarkupt   undo(   R)   RN   R   R   R+   R   R=   t   @py_format4(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt'   test_terminalwriter_dumb_term_no_markup=   s&    !	 	 	  u  	   U  c         C   s  t  j j j t |  j d ƒ ƒ d d ƒ } t  j j d | ƒ } | j } d } | | k } | st	 j
 d | f d | | f ƒ i d t j ƒ  k s¢ t	 j | ƒ r± t	 j | ƒ n d d 6t	 j | ƒ d	 6t	 j | ƒ d
 6} d i | d 6} t t	 j | ƒ ƒ ‚ n  d  } } } d  S(   Nt   xyzt   wbt   utf8t   files   ==s0   %(py2)s
{%(py2)s = %(py0)s.encoding
} == %(py5)sR=   R   R   R>   R   s   assert %(py7)sR3   (   s   ==(   s0   %(py2)s
{%(py2)s = %(py0)s.encoding
} == %(py5)ss   assert %(py7)s(   R   t   stdt   codecst   opent   strt   joinR   R?   t   encodingR
   R   R   R   R   R   R   R   R   (   t   tmpdirt   fR=   R   R,   R   RA   R:   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt    test_terminalwriter_file_unicodeK   s    *	    |   c          C   sÁ  t  j j d d ƒ }  x¥d D]} g  } t  j j | j d | ƒ} | j |  ƒ | d } | j } | ƒ  } |  j } | | ƒ } | | k }	 |	 sŸt	 j
 d |	 f d | | f ƒ i t	 j | ƒ d 6t	 j | ƒ d	 6t	 j | ƒ d
 6d t j ƒ  k st	 j | ƒ rt	 j | ƒ n d d 6t	 j | ƒ d 6t	 j | ƒ d 6d t j ƒ  k s\t	 j |  ƒ rkt	 j |  ƒ n d d 6}
 d i |
 d 6} t t	 j | ƒ ƒ ‚ n  d  } } } }	 } } q Wd  S(   Ns   b\u00f6yR]   t   latin1Rd   i    s   ==s   %(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.strip
}()
} == %(py12)s
{%(py12)s = %(py9)s
{%(py9)s = %(py7)s.encode
}(%(py10)s)
}R4   t   py12R   t   py10R    R>   t   msgR3   R   s   assert %(py14)st   py14(   s   utf8s   latin1(   s   ==(   s   %(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.strip
}()
} == %(py12)s
{%(py12)s = %(py9)s
{%(py9)s = %(py7)s.encode
}(%(py10)s)
}s   assert %(py14)s(   R   t   builtint   _totextR   R?   R   t   linet   stript   encodeR
   R   R   R   R   R   R   R   R   (   Rk   Rd   R   R=   R.   R*   R,   t   @py_assert8t   @py_assert11R9   t   @py_format13t   @py_format15(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_unicode_encodingP   s     
 	 	 	    ã   Rd   t   asciic         C   sr  t  j j d d ƒ } t  j j j t |  j d ƒ ƒ d | ƒ } t  j j	 | ƒ } | j
 | ƒ | j ƒ  |  j d ƒ j d ƒ j ƒ  j ƒ  } d } | | k } | s9t j d | f d | | f ƒ i d	 t j ƒ  k sæ t j | ƒ rõ t j | ƒ n d	 d
 6t j | ƒ d 6}	 d i |	 d 6}
 t t j |
 ƒ ƒ ‚ n  d  } } | j } d } | | ƒ } | | k } | s\t j d | f d | | f ƒ i d t j ƒ  k s²t j | ƒ rÁt j | ƒ n d d
 6t j | ƒ d 6d t j ƒ  k sùt j | ƒ rt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } } d  S(   Ns   hellöRh   R   t   wt   rbRw   s   ==s   %(py0)s == %(py3)sRd   R   R    R   s   assert %(py5)sR>   s   unicode-escapesL   %(py0)s == %(py8)s
{%(py8)s = %(py4)s
{%(py4)s = %(py2)s.encode
}(%(py6)s)
}t   sR!   Rk   R   R   R   s   assert %(py10)sRj   (   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   s   ==(   sL   %(py0)s == %(py8)s
{%(py8)s = %(py4)s
{%(py4)s = %(py2)s.encode
}(%(py6)s)
}s   assert %(py10)s(   R   Rm   Rn   R_   R`   Ra   Rb   Rc   R   R?   Ro   t   closet   readRp   R
   R   R   R   R   R   R   R   R   Rq   (   Re   R)   Rd   Rk   Rf   R=   Rz   R*   R   RY   RA   R   R+   t   @py_assert7R-   t   @py_format11(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt(   test_unicode_on_file_with_ascii_encodingX   s,    *
$   l   
	     Ã   t   win32t   TestTerminalWriterc           B   s•   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j	 j
 j d ƒ d „  ƒ Z e j	 j
 j d ƒ d „  ƒ Z d	 „  Z d
 „  Z d „  Z RS(   c         C   sX   d | j  k rT | j d d d d ƒ | j d d d d ƒ | j d d d d ƒ n  d  S(   NR=   t   idt   patht   paramRF   t   callable(   t   funcargnamest   addcall(   RO   t   metafunc(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   pytest_generate_testsg   s    c            s  | j  d k rr | j d ƒ } | j d ƒ ‰ t j t ˆ ƒ d d d ƒ} t j j | ƒ ‰ ‡ ‡ f d †  ‰  nr | j  d k r¨ t j j d t	 ƒ ‰ ‡ f d	 †  ‰  n< | j  d
 k rä g  ‰ t j j ˆ j
 ƒ ‰ ‡ f d †  ‰  n  ˆ  ˆ _ ‡  f d †  ˆ _ ˆ S(   NRƒ   Re   t   tmpfiles   w+Rd   R]   c              s/   ˆ j  j ƒ  t j t ˆ  ƒ d d d ƒj ƒ  S(   Nt   rRd   R]   (   t   _filet   flushR`   Ra   Rb   t	   readlines(    (   t   pR=   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   getlinesr   s    RF   c              s   ˆ  j  j d ƒ ˆ  j  j ƒ  S(   Ni    (   RF   t   seekRŽ   (    (   R=   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   x   s    R…   c             s<   t  j j ƒ  }  |  j d j ˆ  ƒ ƒ |  j d ƒ |  j ƒ  S(   NR   i    (   R   R   t   TextIOt   writeRc   R‘   RŽ   (   R   (   t   writes(    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   ~   s    c              s   d j  ˆ  ƒ  ƒ S(   NR   (   Rc   (    (   R   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   „   s    (   R„   t   getfuncargvalueRc   R`   Ra   Rb   R   R   R?   RH   R   R   t   getvalue(   RO   t   requestRe   Rf   (    (   R   R   R=   R”   sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   pytest_funcarg__twl   s     	c         C   sÉ  | j  d ƒ | j ƒ  } t | ƒ } d } | | k } | st j d | f d | | f ƒ i d t j ƒ  k s t j t ƒ rŽ t j t ƒ n d d 6d t j ƒ  k s¶ t j | ƒ rÅ t j | ƒ n d d 6t j | ƒ d	 6t j | ƒ d
 6} d i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } } } | d } d }	 | |	 k } | s·t j d | f d | |	 f ƒ i t j | ƒ d 6t j |	 ƒ d 6}
 d i |
 d
 6} t	 t j
 | ƒ ƒ ‚ n  d  } } }	 d  S(   Nt   helloi   s   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)sR   R   R   R   R    R   R   s   assert %(py8)sR!   i    s   hello
s   %(py1)s == %(py4)sR   s   assert %(py6)s(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   Ro   R   R   R
   R   R   R   R   R   R   R   R   (   RO   R=   R   R*   R+   R,   R   R-   R.   R   R   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt	   test_line‡   s$        ³   
    E   c         C   s/  x(d D] } | | _  t j j d d ƒ } | j | ƒ | j ƒ  } | d } d } | | } | | k } | st j d | f d | | f ƒ i t j | ƒ d 6d	 t	 j
 ƒ  k sÂ t j | ƒ rÑ t j | ƒ n d	 d
 6t j | ƒ d 6}	 d i |	 d 6}
 t t j |
 ƒ ƒ ‚ n  d  } } } } q Wd  S(   NR]   Rh   s   b\u00f6yi    s   
s   ==s   %(py1)s == (%(py3)s + %(py5)s)R   Rk   R    R>   R   s   assert %(py8)sR!   (   s   utf8s   latin1(   s   ==(   s   %(py1)s == (%(py3)s + %(py5)s)s   assert %(py8)s(   t	   _encodingR   Rm   Rn   Ro   R   R
   R   R   R   R   R   R   R   R   (   RO   R=   Rd   Rk   R   R.   R,   R9   R*   R   R-   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_line_unicode   s    	
  
   |   c         C   sd  | j  d d d ƒ| j ƒ  } t | ƒ } d } | | k } | st j d | f d | | f ƒ i d t j ƒ  k s… t j t ƒ r” t j t ƒ n d d 6d	 t j ƒ  k s¼ t j | ƒ rË t j | ƒ n d	 d
 6t j | ƒ d 6t j | ƒ d 6} d i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } } } | d } d }	 d } | t }
 |	 |
 } d } | | } | | k } | s>t j d | f d | | f ƒ i t j | ƒ d
 6t j | ƒ d 6t j |	 ƒ d 6t j | ƒ d 6d t j ƒ  k sût j t ƒ r
t j t ƒ n d d 6} d i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } } }	 } }
 } } } d  S(   Nt   -R@   i<   i   s   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)sR   R   R   R   R    R   R   s   assert %(py8)sR!   i    s   
s7   %(py1)s == ((%(py4)s * (%(py6)s - %(py7)s)) + %(py11)s)t   py11R   R€   R3   s   assert %(py14)sRl   (   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s7   %(py1)s == ((%(py4)s * (%(py6)s - %(py7)s)) + %(py11)s)s   assert %(py14)s(   t   sepR   R   R
   R   R   R   R   R   R   R   R   R€   (   RO   R=   R   R*   R+   R,   R   R-   R.   R   Rr   t   @py_assert9t   @py_assert10t   @py_assert12Rt   Ru   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_sep_no_title•   s.        ³   
   
 
  
   œ   c         C   sß  | j  d d d d ƒ| j ƒ  } t | ƒ } d } | | k } | s"t j d  | f d! | | f ƒ i d t j ƒ  k sˆ t j t ƒ r— t j t ƒ n d d	 6d
 t j ƒ  k s¿ t j | ƒ rÎ t j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6} d" i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } } } | d } d }	 d } |	 | }
 d } |
 | } d } d } | t } | | } | | } d } | | } | | k } | s¡t j d# | f d$ | | f ƒ i t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j |	 ƒ d 6t j | ƒ d 6d t j ƒ  k s>t j t ƒ rMt j t ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d% i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } } }	 } }
 } } } } } } } } } d  S(&   NR   R™   R@   i<   i   s   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)sR   R   R   R   R    R   R   s   assert %(py8)sR!   i    i   s    hello i   s   
s^   %(py1)s == ((((%(py4)s * %(py6)s) + %(py9)s) + (%(py12)s * (%(py14)s - %(py15)s))) + %(py20)s)R4   Ri   R   Rl   R€   t   py15t   py20s   assert %(py23)st   py23(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s^   %(py1)s == ((((%(py4)s * %(py6)s) + %(py9)s) + (%(py12)s * (%(py14)s - %(py15)s))) + %(py20)s)s   assert %(py23)s(   RŸ   R   R   R
   R   R   R   R   R   R   R   R   R€   (   RO   R=   R   R*   R+   R,   R   R-   R.   R   R}   Rr   R¡   Rs   t   @py_assert13t   @py_assert16t   @py_assert17t   @py_assert18t   @py_assert19t   @py_assert21t   @py_format22t   @py_format24(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_sep_with_title›   s:        ³   
   
  
   
 
 
  
   Ì   s   sys.platform == 'win32'c   
      C   s$  | j  d d ƒ } | j } d } | | ƒ } d } | | k } | s
t j d | f d | | f ƒ i d t j ƒ  k s‡ t j | ƒ r– t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6t j | ƒ d
 6t j | ƒ d 6} d i | d 6}	 t t j	 |	 ƒ ƒ ‚ n  d  } } } } } d  S(   NR™   i   iÿÿÿÿs   !=sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)st   text2R   R4   R   R   R   R   s   assert %(py11)sRž   (   s   !=(   sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)ss   assert %(py11)s(   t   _escapedt   findR
   R   R   R   R   R   R   R   R   (
   RO   R=   R°   R   R   R+   Rr   R}   R;   t   @py_format12(    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test__escaped¡   s    	      œ   c         C   s€  xSt  t f D]E} x<d D]4} | j d i t  | 6| d 6 } | j } d } | | ƒ } d } | | k }	 |	 s8t j d |	 f d | | f ƒ i d t j ƒ  k sµ t j | ƒ rÄ t j	 | ƒ n d d	 6t j	 | ƒ d
 6t j	 | ƒ d 6t j	 | ƒ d 6t j	 | ƒ d 6}
 d i |
 d 6} t
 t j | ƒ ƒ ‚ n  d  } } } }	 } q Wq Wt j j t d ƒ t j j t d ƒ d  S(   Nt   redt   greenR™   t   boldiÿÿÿÿs   !=sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)sR°   R   R4   R   R   R   R   s   assert %(py11)sRž   s   tw.markup('x', wronkw=3)s   tw.markup('x', wronkw=0)(   s   reds   green(   s   !=(   sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)ss   assert %(py11)s(   RH   R8   t   markupR²   R
   R   R   R   R   R   R   R   R   R   R"   t   raisest
   ValueError(   RO   R=   R·   t   colorR°   R   R   R+   Rr   R}   R;   R³   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_markup¦   s     	      œ   c   	      C   sU  t  | _ | j d d t  ƒ| j d d t  ƒ| j ƒ  } t j d k rQ| d } t | ƒ } d } | | k } | s:t j	 d | f d | | f ƒ i d
 t
 j ƒ  k sº t j t ƒ rÉ t j t ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} t j | ƒ d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } } | d } t | ƒ } d } | | k } | s<t j	 d | f d | | f ƒ i d
 t
 j ƒ  k s¼t j t ƒ rËt j t ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} t j | ƒ d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } } n  d  S(   NR   R·   s   x
Rµ   R€   i    i   s   >=s0   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} >= %(py7)sR   R   R   R   R3   s   
>assert %(py9)sR4   i   (   s   >=(   s0   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} >= %(py7)s(   s   >=(   s0   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} >= %(py7)s(   RH   RW   Ro   R“   R   RU   t   platformR   R
   R   R   R   R   R   t   _format_assertmsgR   R   R   (	   RO   R=   R   R   R   R9   R+   R:   R;   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_line_write_markup¯   s.    	
     Œ   
     Œ   c   
      C   s  | j  d d d d ƒd | _ | j  d d ƒ | j ƒ  } | d } t | ƒ } | d } t | ƒ } | | k } | sut j d | f d | | f ƒ i t j | ƒ d	 6d
 t j ƒ  k sË t j	 t ƒ rÚ t j t ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6d
 t j ƒ  k s"t j	 t ƒ r1t j t ƒ n d
 d 6t j | ƒ d 6} d i | d 6}	 t
 t j |	 ƒ ƒ ‚ n  d  } } } } } d  S(   NR   R™   R@   iF   i    i   s   ==sP   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} == %(py10)s
{%(py10)s = %(py6)s(%(py8)s)
}R!   R   R   R   R   R   Rj   R   s   assert %(py12)sRi   (   s   ==(   sP   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} == %(py10)s
{%(py10)s = %(py6)s(%(py8)s)
}s   assert %(py12)s(   RŸ   R@   R   R   R
   R   R   R   R   R   R   R   R   (
   RO   R=   R   R   R   R}   R    R+   R~   Rt   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_attr_fullwidth¸   s    	
  
    Ó   c            sS  ˆ  j  d ƒ t ˆ  _ t j t ‡  f d †  ƒ t ˆ  _ ˆ  j d ƒ ˆ  j ƒ  ˆ  j	 ƒ  j
 d ƒ } t | ƒ } d } | | k } | sdt j d | f d  | | f ƒ i d t j ƒ  k sÊ t j t ƒ rÙ t j t ƒ n d d	 6d
 t j ƒ  k st j | ƒ rt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6} d! i | d 6} t t j | ƒ ƒ ‚ n  d  } } } ˆ  j d ƒ ˆ  j	 ƒ  j
 d ƒ } t | ƒ } d } | | k } | s”t j d" | f d# | | f ƒ i d t j ƒ  k sút j t ƒ r	t j t ƒ n d d	 6d
 t j ƒ  k s1t j | ƒ r@t j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6} d$ i | d 6} t t j | ƒ ƒ ‚ n  d  } } } | d } | j } d } | | ƒ }	 |	 s3d d i t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j |	 ƒ d 6}
 t t j |
 ƒ ƒ ‚ n  d  } } } }	 ˆ  j  d ƒ ˆ  j	 ƒ  j
 d ƒ } t | ƒ } d } | | k } | sgt j d% | f d& | | f ƒ i d t j ƒ  k sÍt j t ƒ rÜt j t ƒ n d d	 6d
 t j ƒ  k st j | ƒ rt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6} d' i | d 6} t t j | ƒ ƒ ‚ n  d  } } } | d } d } | | k } | st j d( | f d) | | f ƒ i t j | ƒ d 6t j | ƒ d 6} d* i | d 6} t t j | ƒ ƒ ‚ n  d  } } } | d } d } | | k } | s£t j d+ | f d, | | f ƒ i t j | ƒ d 6t j | ƒ d 6} d- i | d 6} t t j | ƒ ƒ ‚ n  d  } } } | d } d } | | k } | sAt j d. | f d/ | | f ƒ i t j | ƒ d 6t j | ƒ d 6} d0 i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(1   NR™   c              s   ˆ  j  d ƒ S(   NR   (   t   reline(    (   R=   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   Â   s    s   0 1 2s   
i   s   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)sR   R   R   R   R    R   R   s   assert %(py8)sR!   s   0 1 3i   s   0 1 3sJ   assert %(py7)s
{%(py7)s = %(py3)s
{%(py3)s = %(py1)s.endswith
}(%(py5)s)
}R>   R3   t   soi   iÿÿÿÿs   %(py1)s == %(py4)sR   s   assert %(py6)ss   0 1 20 1 3so   i    (   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   Ro   R8   RW   t   pytestR¹   Rº   RH   RÁ   R   R–   t   splitR   R
   R   R   R   R   R   R   R   R   t   endswith(   RO   R=   R   R*   R+   R,   R   R-   R.   R9   R:   R   R   (    (   R=   sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_reline¿   s†    		
    ³       ³   
 	    N      ³   
    E   
    E   
    E   (   RQ   RR   R‰   R˜   Rš   Rœ   R£   R¯   R   R"   t   markt   skipifR´   R¼   R¿   RÀ   RÆ   (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   f   s   										c             sœ  t  ƒ  ‰  d d ‡  f d †  ƒ  Y}  t j j |  ƒ  ƒ } | j d ƒ d g } t  | ƒ } ˆ  | k } | sGt j d | f d ˆ  | f ƒ i d t j ƒ  k s­ t j	 ˆ  ƒ r¼ t j
 ˆ  ƒ n d d 6d	 t j ƒ  k sä t j	 t  ƒ ró t j
 t  ƒ n d	 d
 6t j
 | ƒ d 6t j
 | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } |  ` ˆ  j ƒ  t j j |  ƒ  ƒ } | j d ƒ d g } t  | ƒ } ˆ  | k } | sŠt j d | f d ˆ  | f ƒ i d t j ƒ  k sðt j	 ˆ  ƒ rÿt j
 ˆ  ƒ n d d 6d	 t j ƒ  k s't j	 t  ƒ r6t j
 t  ƒ n d	 d
 6t j
 | ƒ d 6t j
 | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(   Nt   filc              s5   e  Z ‡  f d  †  Z ‡  f d †  Z ‡  f d †  Z RS(   c            s   ˆ  j  d ƒ S(   Nt   1(   t   add(   RO   (   R   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   ×   s    c            s   ˆ  j  d ƒ S(   NRÊ   (   RË   (   RO   R   (   R   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   Ø   s    c            s   ˆ  j  d ƒ S(   Nt   2(   RË   (   RO   R   (   R   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   Ù   s    (   RQ   RR   R   R“   t   __call__(    (   R   (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyRÉ   Ö   s   R™   RÊ   s   ==s0   %(py0)s == %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}R   R   t   setR   R   R   R   s   assert %(py8)sR!   RÌ   (    (   s   ==(   s0   %(py0)s == %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}s   assert %(py8)s(   s   ==(   s0   %(py0)s == %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}s   assert %(py8)s(   RÎ   R   R   R?   Ro   R
   R   R   R   R   R   R   R   R   R   t   clear(   RÉ   R=   R   R+   R   R   R-   (    (   R   sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt+   test_terminal_with_callable_write_and_flushÔ   s0    		    ³   
	    ³   t   reasons   win32 has no native ansic          C   sÆ  t  j j d t ƒ }  |  j } | } | r™ d d i d t j ƒ  k pT t j |  ƒ rf t j	 |  ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  t } } t |  _ |  j d d t ƒ|  j j ƒ  } t | ƒ } d	 } t | ƒ } | | k } | r,t j d
 f | f d f | | f ƒ i t j	 | ƒ d 6d t j ƒ  k pTt j t ƒ rft j	 t ƒ n d d 6d t j ƒ  k p‹t j | ƒ rt j	 | ƒ n d d 6t j	 | ƒ d 6d t j ƒ  k pÒt j t ƒ rät j	 t ƒ n d d 6t j	 | ƒ d 6}	 d d i |	 d 6}
 t
 t j |
 ƒ ƒ ‚ n  t } } } } d } | | k } | röt j d f | f d f | | f ƒ i t j	 | ƒ d 6d t j ƒ  k p¬t j | ƒ r¾t j	 | ƒ n d d 6} d d i | d 6} t
 t j | ƒ ƒ ‚ n  t } } d } | | k } | r¸t j d f | f d f | | f ƒ i t j	 | ƒ d 6d t j ƒ  k pnt j | ƒ r€t j	 | ƒ n d d 6} d d i | d 6} t
 t j | ƒ ƒ ‚ n  t } } d  S(   NRF   R   s1   assert not %(py2)s
{%(py2)s = %(py0)s.hasmarkup
}R=   R   R   R™   R·   s   hello
t   >sM   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} > %(py9)s
{%(py9)s = %(py5)s(%(py7)s)
}R4   R   Rz   R   R    R>   R3   s   assert %(py11)sRž   s   [1mt   ins   %(py1)s in %(py3)ss   assert %(py5)ss   [0m(   R   R   R?   RH   RW   R   R   R
   R   R   R   R   R   Ro   RF   R–   R   R   (   R=   R   R   RY   Rz   R*   R9   Rr   R,   R;   R³   R.   RA   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_attr_hasmarkupå   sD    	   U  
	     ÿ       r   
   r   c          C   sQ  t  j j ƒ  }  d „  |  _ t  j j d d d |  ƒ|  j ƒ  } | j } d } | | ƒ } d } | | k } | rCt j d f | f d f | | f ƒ i d t	 j
 ƒ  k p¹ t j | ƒ rË t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d d i | d 6} t t j | ƒ ƒ ‚ n  t } } } } } t | ƒ }	 d }
 t |
 ƒ } |	 | k } | r·t j d f | f d f |	 | f ƒ i t j | ƒ d
 6d t	 j
 ƒ  k pßt j t ƒ rñt j t ƒ n d d	 6d t	 j
 ƒ  k pt j | ƒ r(t j | ƒ n d d 6t j |	 ƒ d 6d t	 j
 ƒ  k p]t j t ƒ rot j t ƒ n d d 6t j |
 ƒ d 6} d d i | d 6} t t j | ƒ ƒ ‚ n  t }	 } }
 } d } | | k }	 |	 rt j d f |	 f d f | | f ƒ i t j | ƒ d 6d t	 j
 ƒ  k p7t j | ƒ rIt j | ƒ n d d 6} d d i | d 6} t t j | ƒ ƒ ‚ n  t } }	 d } | | k }	 |	 rCt j d f |	 f d f | | f ƒ i t j | ƒ d 6d t	 j
 ƒ  k pùt j | ƒ rt j | ƒ n d d 6} d d i | d 6} t t j | ƒ ƒ ‚ n  t } }	 d  S(   Nc           S   s   t  S(   N(   RH   (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   õ   s    R™   i2   R^   iÿÿÿÿs   !=sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)sR°   R   R4   R   R   R   R   s   assert %(py11)sRž   s   hello
s   >=sN   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} >= %(py9)s
{%(py9)s = %(py5)s(%(py7)s)
}R   R   R    R>   R3   s   [50mRÓ   s   %(py1)s in %(py3)ss   assert %(py5)ss   [0m(   R   R   R’   RP   t
   ansi_printR–   R²   R
   R   R   R   R   R   R   R   R   R   (   Rf   R°   R   R   R+   Rr   R}   R;   R³   R*   R9   R,   R.   RY   RA   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   test_ansi_printð   sL    	      ¢        ÿ       r   
   r   c         C   sÈ  |  j  t j d d ƒ t j j d t ƒ } | j } | r¨ d d i d t j	 ƒ  k pc t
 j | ƒ ru t
 j | ƒ n d d 6t
 j | ƒ d 6} t t
 j | ƒ ƒ ‚ n  t } | j d	 d
 t ƒ| j j ƒ  } t | ƒ } d } t | ƒ } | | k } | r.t
 j d f | f d f | | f ƒ i t
 j | ƒ d 6d t j	 ƒ  k pVt
 j t ƒ rht
 j t ƒ n d d 6d t j	 ƒ  k pt
 j | ƒ rŸt
 j | ƒ n d d 6t
 j | ƒ d 6d t j	 ƒ  k pÔt
 j t ƒ ræt
 j t ƒ n d d 6t
 j | ƒ d 6}	 d d i |	 d 6}
 t t
 j |
 ƒ ƒ ‚ n  t } } } } d } | | k } | røt
 j d f | f d f | | f ƒ i t
 j | ƒ d 6d t j	 ƒ  k p®t
 j | ƒ rÀt
 j | ƒ n d d 6} d d i | d 6} t t
 j | ƒ ƒ ‚ n  t } } d } | | k } | rºt
 j d f | f d f | | f ƒ i t
 j | ƒ d 6d t j	 ƒ  k ppt
 j | ƒ r‚t
 j | ƒ n d d 6} d d i | d 6} t t
 j | ƒ ƒ ‚ n  t } } d  S(   Nt	   PY_COLORSRÊ   RF   R   s-   assert %(py2)s
{%(py2)s = %(py0)s.hasmarkup
}R=   R   R   R™   R·   s   hello
RÒ   sM   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} > %(py9)s
{%(py9)s = %(py5)s(%(py7)s)
}R4   R   Rz   R   R    R>   R3   s   assert %(py11)sRž   s   [1mRÓ   s   %(py1)s in %(py3)ss   assert %(py5)ss   [0m(   t   setitemRV   RJ   R   R   R?   RH   RW   R   R   R
   R   R   R   R   R   Ro   RF   R–   R   R   (   R)   R=   R   t   @py_format3Rz   R*   R9   Rr   R,   R;   R³   R.   RY   RA   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt$   test_should_do_markup_PY_COLORS_eq_1ý   sB    	  U       ÿ       r   
   r   c   	      C   s­  |  j  t j d d ƒ t j j ƒ  } d „  | _ t j j d | ƒ } | j } | } | sÉ d d i d t	 j
 ƒ  k s‡ t j | ƒ r– t j | ƒ n d d 6t j | ƒ d	 6} t t j | ƒ ƒ ‚ n  d  } } | j d
 d t ƒ| j ƒ  } d } | | k } | sŸt j d | f d | | f ƒ i d t	 j
 ƒ  k sLt j | ƒ r[t j | ƒ n d d 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } d  S(   NR×   t   0c           S   s   t  S(   N(   RH   (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyR   
  s    R^   R   s1   assert not %(py2)s
{%(py2)s = %(py0)s.hasmarkup
}R=   R   R   R™   R·   s   hello
s   ==s   %(py0)s == %(py3)sRz   R    s   assert %(py5)sR>   (   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   RØ   RV   RJ   R   R   R’   RP   R?   RW   R   R   R
   R   R   R   R   R   Ro   RH   R–   R   (	   R)   Rf   R=   R   R   RY   Rz   R*   RA   (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt$   test_should_do_markup_PY_COLORS_eq_0  s&    	   U  
   l   (    (%   t   __builtin__R   t   _pytest.assertion.rewritet	   assertiont   rewriteR
   R   RV   RU   t   py._ioR    R`   RÃ   R   R/   R<   RB   RC   RD   RE   RI   RZ   Rg   Rv   RÇ   t   parametrizeR   R0   R½   R€   R   RÐ   RÈ   RÔ   RÖ   RÚ   RÜ   (    (    (    sE   /home/ronny/Projects/pytest-dev/py/testing/io_/test_terminalwriter.pyt   <module>   s2     												!n	**	
