
NXc           @   sT   d  d l  Z  d  d l Z d  d l j Z d  d l m Z d  d l m Z d   Z	 d S(   iN(   t   capture_output(   t   ShimWarningc          C   s   t  j j d d   t j d t    }  t j d  d d  l } Wd  QXt	 |   d k s_ t
  t |  d j t  s{ t
  d  S(   Ns   IPython.configt   recordt   alwaysii   (   t   syst   modulest   popt   Nonet   warningst   catch_warningst   Truet   simplefiltert   IPython.configt   lent   AssertionErrort
   issubclasst   categoryR   (   t   wt   IPython(    (    s[   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_shimmodule.pyt   test_shim_warning	   s    (
   R   R   t
   nose.toolst   toolst   ntt   IPython.utils.captureR    t   IPython.utils.shimmoduleR   R   (    (    (    s[   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_shimmodule.pyt   <module>   s
   