
&]\c           @` s   d  d l  m Z m Z m Z d  d l Z d  d l m Z d  d l m Z d  d l	 j
 Z d  d l Z y d  d l m Z e Z Wn e k
 r e Z n Xe j j e d d d    Z d S(	   i    (   t   divisiont   print_functiont   absolute_importN(   t   assert_array_equal(   t   suppress_warnings(   t   Imaget   reasons,   The Python Image Library could not be found.c          C` s)  t  j j t  j j t  d  }  t   9 } | j d d  | j t  t j	 |  d d } Wd  QXt
 | j d  t   9 } | j d d  | j t  t j	 |  d	 t } Wd  QXt
 | j d  t |  d
  K } t   ) } | j t  t j	 | d d } Wd  QXt
 | j d  Wd  QXd  S(   Ns   dots.pngt   messages   unclosed filet   modet   RGBi,  i  i   t   flattent   rb(   i,  i  i   (   i,  i  (   i,  i  i   (   t   ost   patht   joint   dirnamet   __file__R   t   filtert   DeprecationWarningt   ndit   imreadR   t   shapet   Truet   open(   t   lpt   supt   imgt   fobj(    (    s:   lib/python2.7/site-packages/scipy/ndimage/tests/test_io.pyt   test_imread   s     !(   t
   __future__R    R   R   t   pytestt   numpy.testingR   t   scipy._lib._numpy_compatR   t   scipy.ndimaget   ndimageR   R   t   PILR   t   Falset   pil_missingt   ImportErrorR   t   markt   skipifR   (    (    (    s:   lib/python2.7/site-packages/scipy/ndimage/tests/test_io.pyt   <module>   s   

