ó
¬«Y]c           @   sZ  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m	 Z	 e	 d ƒ e	 d d e
 ƒe d k r‘ e d ƒ n  e Z d e j k r¿ e
 Z e j j d ƒ n  d	 e j k rç e Z e j j d	 ƒ n  e e d
 ƒ re j ƒ  d  d k  re j d ƒ ‚ n  d e j f d „  ƒ  YZ d „  Z e d k rVe ƒ  n  d S(   s   
Run all test cases.
iÿÿÿÿN(   t   requirest   run_unittestt   import_modulet   _bsddbt   bsddbt
   deprecatedt   __main__t   verboset   silentt   getwindowsversioni   i   i    s#   bpo-30778: skip tests on Windows XPt   TimingCheckc           B   s-   e  Z d  Z d Z e j ƒ  e Z d „  Z RS(   s´   This class is not a real test.  Its purpose is to print a message
    periodically when the test runs slowly.  This will prevent the buildbots
    from timing out on slow machines.i   i<   c         C   sO   t  j  ƒ  } |  j | k rK | |  j t _ t j j d ƒ t j j ƒ  n  d  S(   Ns+     test_bsddb3 still working, be patient...
(   t   timet	   next_timet   _PRINT_WORKING_MSG_INTERVALR
   t   syst
   __stdout__t   writet   flush(   t   selft   now(    (    s!   lib/python2.7/test/test_bsddb3.pyt   testCheckElapsedTime3   s
    ið   (   t   __name__t
   __module__t   __doc__R   R   R   R   (    (    (    s!   lib/python2.7/test/test_bsddb3.pyR
   $   s   c          C   sµ   d d l  m }  d d l m } | j t j j t j	 ƒ  d t j
 ƒ  ƒ ƒ t j |  j IJt j d I| j ƒ  IJz  t | j d d d t ƒ ƒ Wd  y | j ƒ  Wn n XXd  S(	   Niÿÿÿÿ(   t   db(   t   test_alls   z-test_bsddb3-%ss   Test path prefix: t   module_prefixs   bsddb.test.t   timing_check(   R   R   t
   bsddb.testR   t   set_test_path_prefixt   ost   patht   joint   tempfilet
   gettempdirt   getpidR   t   stderrt   DB_VERSION_STRINGt   get_test_path_prefixR   t   suiteR
   t   remove_test_path_directory(   R   R   (    (    s!   lib/python2.7/test/test_bsddb3.pyt	   test_main=   s    (   i   i    (   R   R   R   R!   R   t   unittestt   test.test_supportR    R   R   t   TrueR   t   FalseR   t   argvt   removet   hasattrR	   t   SkipTestt   TestCaseR
   R)   (    (    (    s!   lib/python2.7/test/test_bsddb3.pyt   <module>   s.   
%	