ó
ł`]c           @@ sŅ  d  d l  m Z m Z d  d l Z d  d l Z d  d l Z d  d l m Z d  d l m	 Z	 d  d l
 m Z e j j e j j e j j e  d d   Z e j j d  e  e j j e d  Z e d k rĪd  d	 l m Z y d  d
 l m Z e Z Wn e k
 re Z n Xd e f d     YZ e   Z e j   e j  d Z! e! sZe g Z! n  e" d   e! D  re! e g 7Z! n  e re! d d g 7Z! n  d d d d d g e! Z# e j$ d e# d e j%  n  d S(   i    (   t   absolute_importt   print_functionN(   t   PluginManager(   t   Doctest(   t   builtins   ..t   nltkt   __main__(   t
   DoctestFix(   t   RedNoset   NltkPluginManagerc           B@ s   e  Z d  Z d   Z RS(   s   
        Nose plugin manager that replaces standard doctest plugin
        with a patched version and adds RedNose plugin for colored test output.
        c         C@ ss   x0 t  j D]% } | t k r
 |  j |    q
 q
 W|  j t    t r\ |  j t    n  t t |   j	   d  S(   N(
   R   t   pluginsR   t	   addPluginR   t   rednose_availableR   t   superR	   t   loadPlugins(   t   selft   plug(    (    s1   lib/python2.7/site-packages/nltk/test/runtests.pyR   "   s    (   t   __name__t
   __module__t   __doc__R   (    (    (    s1   lib/python2.7/site-packages/nltk/test/runtests.pyR	      s   i   c         c@ s   |  ] } | j  d   Vq d S(   t   -N(   t
   startswith(   t   .0t   arg(    (    s1   lib/python2.7/site-packages/nltk/test/runtests.pys	   <genexpr>:   s    s	   --rednoses   --hide-skipss
   --exclude=s   --with-doctests   --doctest-extension=.doctests   --doctest-fixtures=_fixtso   --doctest-options=+ELLIPSIS,+NORMALIZE_WHITESPACE,+IGNORE_EXCEPTION_DETAIL,+ALLOW_UNICODE,doctestencoding=utf-8t   argvR
   (&   t
   __future__R    R   t   syst   ost   noset   nose.plugins.managerR   t   nose.plugins.doctestsR   t   nose.pluginsR   t   patht   abspatht   joint   dirnamet   __file__t	   NLTK_ROOTt   insertt   NLTK_TEST_DIRR   t   doctest_nose_pluginR   t   rednoseR   t   TrueR   t   ImportErrort   FalseR	   t   managerR   R   t   argst   allt	   argumentst   mainR
   (    (    (    s1   lib/python2.7/site-packages/nltk/test/runtests.pyt   <module>   sB   0

	
	