From 7d69bbdeb9b9777b9048d3fb40aa9d7c1fd83127 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 16 Jan 2018 13:21:56 +0100 Subject: [PATCH] Remove filterstr workaround from syncrpl test https://github.com/python-ldap/python-ldap/pull/159 Closes: https://github.com/python-ldap/python-ldap/issues/147 Signed-off-by: Christian Heimes --- Tests/t_ldap_syncrepl.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Tests/t_ldap_syncrepl.py b/Tests/t_ldap_syncrepl.py index 8c4eb34..71f240c 100644 --- a/Tests/t_ldap_syncrepl.py +++ b/Tests/t_ldap_syncrepl.py @@ -132,8 +132,7 @@ class SyncreplClient(SimpleLDAPObject, SyncreplConsumer): search, it can't be used for anything else. """ - def __init__(self, uri, dn, password, storage=None, filterstr=None, - **kwargs): + def __init__(self, uri, dn, password, storage=None, **kwargs): """ Set up our object by creating a search client, connecting, and binding. """ @@ -152,7 +151,6 @@ def __init__(self, uri, dn, password, storage=None, filterstr=None, self.data['cookie'] = None self.present = [] self.refresh_done = False - self.filterstr = filterstr SimpleLDAPObject.__init__(self, uri, **kwargs) self.simple_bind_s(dn, password) @@ -175,7 +173,6 @@ def search(self, search_base, search_mode): search_base, ldap.SCOPE_SUBTREE, mode=search_mode, - filterstr=self.filterstr ) def cancel(self): @@ -431,7 +428,6 @@ def setUp(self): self.server.ldap_uri, self.server.root_dn, self.server.root_pw, - filterstr=u'(objectClass=*)', bytes_mode=False ) self.suffix = self.server.suffix @@ -445,7 +441,6 @@ def setUp(self): self.server.ldap_uri, self.server.root_dn.encode('utf-8'), self.server.root_pw.encode('utf-8'), - filterstr=b'(objectClass=*)', bytes_mode=True ) self.suffix = self.server.suffix.encode('utf-8')