ó
Ez]c           @` sü   d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l Z y d  d l Z Wn e	 k
 ri d Z n Xd d  Z e j j e j d  d k  d d d    Z d   Z e j j d d	 d
 e  d    Z e j j e d k d d d    Z d S(   i    (   t   divisiont   absolute_importt   print_functionNc         C` s   | d k r |  j } n  i  } xk t |   D]] } t |  |  } t | d  r+ t | d  r+ | j | k r+ | j d | j | | <q+ q+ W| S(   sE   Returns a mapping of all objects with the wrong __module__ attribute.t
   __module__t   __name__t   .N(   t   NoneR   t   dirt   getattrt   hasattrR   (   t   modulet   module_namet   resultst   namet   item(    (    s:   lib/python2.7/site-packages/numpy/tests/test_public_api.pyt	   check_dir   s    i   t   reasons6   NumPy exposes slightly different functions on Python 2c          C` s  i d d 6d d 6d d 6d d 6d d	 6d
 d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d  d! 6d" d# 6d$ d% 6d& d' 6d( d) 6d* d+ 6d, d- 6}  i d. d/ 6d0 d1 6d2 d3 6d4 d5 6d4 d6 6d7 d8 6d9 d: 6d9 d; 6} t  |  |  } t t  } | | k st  d  S(<   Ns,   numpy.testing._private.nosetester.NoseTestert   Testers.   numpy.core._multiarray_umath._add_newdoc_ufunct   _add_newdoc_ufuncs*   numpy.core._multiarray_umath.add_docstringt   add_docstrings#   numpy.core.function_base.add_newdoct
   add_newdoct   add_newdoc_ufuncs   numpy.lib.utils.byte_boundst   byte_boundss/   numpy.core._multiarray_umath.compare_chararrayst   compare_chararrayss   numpy.lib.utils.deprecatet	   deprecates   numpy.lib.utils.<lambda>t   deprecate_with_docs   numpy.lib.function_base.dispt   disps2   numpy.core._multiarray_umath._fastCopyAndTransposet   fastCopyAndTransposes#   numpy.lib.shape_base.get_array_wrapt   get_array_wraps   numpy.lib.utils.get_includet   get_includes)   numpy.core._multiarray_umath.int_asbuffert   int_asbuffers   numpy.lib.npyio.mafromtxtt	   mafromtxts&   numpy.core.numerictypes.maximum_sctypet   maximum_sctypes   numpy.lib.npyio.ndfromtxtt	   ndfromtxts   numpy.lib.npyio.recfromcsvt
   recfromcsvs   numpy.lib.npyio.recfromtxtt
   recfromtxts   numpy.lib.utils.safe_evalt	   safe_evals)   numpy.core.arrayprint.set_string_functiont   set_string_functions   numpy.__config__.showt   show_configs   numpy.lib.utils.whot   whos   builtins.boolt   bools   builtins.complext   complexs   builtins.floatt   floats   builtins.intt   intt   longs   builtins.objectt   objects   builtins.strt   strt   unicode(   t   dictR   t   npt   AssertionError(   t   undocumentedt   builtinst	   whitelistt   bad_results(    (    s:   lib/python2.7/site-packages/numpy/tests/test_public_api.pyt   test_numpy_namespace   sH    

c          C` s%   t  t j  }  |  i  k s! t  d  S(   N(   R   R1   t   linalgR2   (   R6   (    (    s:   lib/python2.7/site-packages/numpy/tests/test_public_api.pyt   test_numpy_linalgI   s    s+   numpy.fft is patched in MKL-optimized NumPyt   runc          C` s%   t  t j  }  |  i  k s! t  d  S(   N(   R   R1   t   fftR2   (   R6   (    (    s:   lib/python2.7/site-packages/numpy/tests/test_public_api.pyt   test_numpy_fftM   s    s#   ctypes not available in this pythonc          C` sF   t  j t j j j  }  t |  d d   } | d  k sB t d   d  S(   Nt   test_not_exportedsG   'test_not_exported' is mistakenly exported, NPY_NO_EXPORT does not work(	   t   ctypest   CDLLR1   t   coret   _multiarray_testst   __file__R   R   R2   (   t   cdllt   f(    (    s:   lib/python2.7/site-packages/numpy/tests/test_public_api.pyt   test_NPY_NO_EXPORTR   s    (   t
   __future__R    R   R   t   syst   numpyR1   t   pytestR>   t   ImportErrorR   R   t   markt   skipift   version_infoR7   R9   t   xfailt   FalseR<   RE   (    (    (    s:   lib/python2.7/site-packages/numpy/tests/test_public_api.pyt   <module>   s   
	.	$