ó
ØÆ÷Xc           @` sc   d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l m Z m Z d „  Z	 d d „ Z
 d S(   i    (   t   divisiont   absolute_importt   print_functionN(   t   jiffiest   memusagec          C` sw   t  j d ƒ }  g  } d } x@ t j d D]1 } |  j | ƒ rM t | ƒ } q) | j | ƒ q) Wd j | ƒ } | | f S(   Ns   \A\d+\Zi   t    (   t   ret   compilet   syst   argvt   matcht   evalt   appendt   join(   t   mt   argst   repeatt   at	   f2py_opts(    (    s6   /tmp/pip-build-X4mzal/numpy/numpy/f2py/f2py_testing.pyt   cmdline	   s    i   c         C` sa  g  | D]. } | t  | j j d ƒ d j ƒ  ƒ f ^ q } t ƒ  } d  } t ƒ  } d } x£ | | k  rþ | d 7} x† | D]~ \ } }	 |  | ƒ | d  k r¡ qy n  | d  k r½ t ƒ  | } qy t ƒ  | }
 |
 | k ry t d | |
 | |	 ƒ |
 } qy qy Wq\ Wt ƒ  } t d | t | ƒ d d t ƒ  | d ƒ | r]t d	 | d
 ƒ t d | d
 ƒ n  d  S(   Ns   
i   i    s   memory usage change at step %i:t   runt   testss   in %.2f secondsg      Y@s   initial virtual memory size:t   bytess   current virtual memory size:(	   t   reprt   __doc__t   splitt   stripR   t   NoneR   t   printt   len(   t   runtestt   test_functionsR   t   tt   lt   start_memusaget   diff_memusaget   start_jiffiest   it   fnamet   diff_memusage2t   current_memusage(    (    s6   /tmp/pip-build-X4mzal/numpy/numpy/f2py/f2py_testing.pyR      s2    ;		


	(   t
   __future__R    R   R   R   R   t   numpy.testing.utilsR   R   R   R   (    (    (    s6   /tmp/pip-build-X4mzal/numpy/numpy/f2py/f2py_testing.pyt   <module>   s
   	