
                         ~   S r SSKJr  SSKrSSKrSSKrSSKJr  SSKJ	r	  SSK
Jr  \R                  R                  S:  a  SSKJr  \R                   rSS	KJr  SS
KJr  \\l        \R,                  rS r\\l        \S:X  a  \" S\R6                  " 5       -   \R8                  S9  \" \5        S \l        \" S\R6                  " 5       -   \R8                  S9  \R:                  " 5         \R<                  " 5       R?                  \	R@                  " 5       5      r!\RD                  " \!RG                  5       (       + 5        gg)zTTests for Dulwich.

This module is a stub that runs the builtin Dulwich test suite.
    )print_functionN)flags)tests)utils   )reload)git_test_util)
googletestc                    ^ ^ UU 4S jnU$ )az  Alternate implementation of dulwich.tests.utils.ext_functest_builder.

Dulwich skips extension tests for missing C extensions, but we need them in
google3. This implementation fails fast if the C extensions are not found.

Args:
  method: The method to run.
  func: The function implementation to pass to method.

Returns:
  A test method to run the given C extension function.
c                    > U R                  [        T[        R                  5      STR                  -  5        T" U T5        g )NzC extension for %s not found)
assertTrue
isinstancetypesBuiltinFunctionType__name__)selffuncmethods    'lib/third_party/dulwich/dulwich_test.pyDoTest-NonSkippingExtFunctestBuilder.<locals>.DoTest2   s5    OOJtU%>%>?2T]]BD
4     )r   r   r   s   `` r   NonSkippingExtFunctestBuilderr   $   s    
 
-r   __main__z
ENCODING: )filec                      g)Nasciir   r   r   r   <lambda>r   B   s    gr   )$__doc__
__future__r   sysr   unittestabslr   dulwichr   dulwich.testsr   version_infomajor	importlibr   TestCase_real_testcasegoogle3.devtools.git.commonr	   google3.testing.pybaser
   FLAGSr   ext_functest_builderr   printgetfilesystemencodingstderr"ThisTestIsUsefulWithoutCallingMainTextTestRunnerrun
test_suiteresultexitwasSuccessfulr   r   r   <module>r:      s   & 
     Q "" ." 0 ;  zs0022D+-#s0022D//1""$(()9)9);<&((v##%%& r   