You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/02/08 02:17:10 UTC
svn commit: r1241726 -
/subversion/trunk/subversion/bindings/swig/python/tests/client.py
Author: danielsh
Date: Wed Feb 8 01:17:09 2012
New Revision: 1241726
URL: http://svn.apache.org/viewvc?rev=1241726&view=rev
Log:
Follow-up to r1241713: restore compatibility with old Pythons.
* subversion/bindings/swig/python/tests/client.py
(test_platform_providers): Use filter() instead of all().
Modified:
subversion/trunk/subversion/bindings/swig/python/tests/client.py
Modified: subversion/trunk/subversion/bindings/swig/python/tests/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/client.py?rev=1241726&r1=1241725&r2=1241726&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/client.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/client.py Wed Feb 8 01:17:09 2012
@@ -378,9 +378,9 @@ class SubversionClientTestCase(unittest.
providers = core.svn_auth_get_platform_specific_client_providers(None, None)
# Not much more we can test in this minimal environment.
self.assert_(isinstance(providers, list))
- self.assert_(all(map(lambda x:
- isinstance(x, core.svn_auth_provider_object_t),
- providers)))
+ self.assert_(not filter(lambda x:
+ not isinstance(x, core.svn_auth_provider_object_t),
+ providers))
def testGnomeKeyring(self):
if not hasattr(core, 'svn_auth_set_gnome_keyring_unlock_prompt_func'):