Skip to content

Commit

Permalink
removed work-around in t_cext.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Oct 9, 2017
1 parent d70a735 commit 206a10b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
6 changes: 4 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Released 2.4.45 2017-09-xx
Changes since 2.4.44:

Lib/
*

Tests/
* removed work-around in t_cext.py

----------------------------------------------------------------
Released 2.4.44 2017-09-08
Expand Down Expand Up @@ -1509,4 +1511,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19

$Id: CHANGES,v 1.467 2017/09/26 09:40:26 stroeder Exp $
$Id: CHANGES,v 1.468 2017/10/09 14:40:48 stroeder Exp $
16 changes: 1 addition & 15 deletions Tests/t_cext.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
See https://www.python-ldap.org/ for details.
$Id: t_cext.py,v 1.24 2017/09/04 07:47:29 stroeder Exp $
$Id: t_cext.py,v 1.25 2017/10/09 14:40:48 stroeder Exp $
"""

import os
Expand Down Expand Up @@ -523,20 +523,6 @@ def test_rename(self):
result, pmsg, msgid, ctrls = l.result4(m, _ldap.MSG_ALL, self.timeout)
self.assertEqual(result, _ldap.RES_ADD)

# WORKAROUND bug in slapd. (Without an existing child,
# renames into a container object do not work for the ldif backend,
# the renamed object appears to be deleted, not moved.)
# see http://www.openldap.org/its/index.cgi/Software%20Bugs?id=5408
m = l.add_ext(
"cn=Bogus," + containerDn,
[
('objectClass', 'organizationalRole'),
('cn', 'Bogus'),
]
)
result, pmsg, msgid, ctrls = l.result4(m, _ldap.MSG_ALL, self.timeout)
self.assertEqual(result, _ldap.RES_ADD)

# now rename from dn2 to the conater
dn3 = "cn=IAmRenamedAgain," + containerDn

Expand Down

0 comments on commit 206a10b

Please sign in to comment.