changeset 36:c4523e651325

Fix tests against the improved SWIG bindings in Subversion 1.6.
author Augie Fackler <durin42@gmail.com>
date Sat, 18 Oct 2008 18:56:09 -0500
parents ef5d7a7aabb0
children 2d319e162598
files svnwrap/svn_swig_wrapper.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svnwrap/svn_swig_wrapper.py
+++ b/svnwrap/svn_swig_wrapper.py
@@ -40,9 +40,15 @@ def _create_auth_baton(pool):
         ]
     # Platform-dependant authentication methods
     if hasattr(client, 'get_windows_simple_provider'):
-        providers.append(client.get_windows_simple_provider())
+        try:
+            providers.append(client.get_windows_simple_provider())
+        except:
+            pass
     if hasattr(client, 'get_keychain_simple_provider'):
-        providers.append(client.get_keychain_simple_provider())
+        try:
+            providers.append(client.get_keychain_simple_provider())
+        except:
+            pass
     providers.extend([client.get_simple_prompt_provider(user_pass_prompt, 2),
                      ])
     return core.svn_auth_open(providers, pool)