# HG changeset patch # User Augie Fackler # Date 1224374169 18000 # Node ID c4523e6513257420db0c6c79e32228e8348fb703 # Parent ef5d7a7aabb05a1966d2231180de0e8a249f9b65 Fix tests against the improved SWIG bindings in Subversion 1.6. diff --git a/svnwrap/svn_swig_wrapper.py b/svnwrap/svn_swig_wrapper.py --- 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)