Skip to content

Commit f228e7c

Browse files
committed
Correct attr value's type to bytes in tests
Refs python-ldap#212
1 parent a06254e commit f228e7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/t_ldapobject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,13 @@ def test_dse_bytes(self):
649649
def test_compare_s_true(self):
650650
base = self.server.suffix
651651
l = self._ldap_conn
652-
result = l.compare_s('cn=Foo1,%s' % base, 'cn', 'Foo1')
652+
result = l.compare_s('cn=Foo1,%s' % base, 'cn', b'Foo1')
653653
self.assertIs(result, True)
654654

655655
def test_compare_s_false(self):
656656
base = self.server.suffix
657657
l = self._ldap_conn
658-
result = l.compare_s('cn=Foo1,%s' % base, 'cn', 'Foo2')
658+
result = l.compare_s('cn=Foo1,%s' % base, 'cn', b'Foo2')
659659
self.assertIs(result, False)
660660

661661

0 commit comments

Comments
 (0)