Skip to content

Commit d7cdb08

Browse files
author
stroeder
committed
SlapdObject.testrunsubdirs should at least contain 'schema'
1 parent 8afd4c0 commit d7cdb08

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/slapdtest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
See https://www.python-ldap.org/ for details.
66
7-
$Id: slapdtest.py,v 1.16 2017/08/15 16:21:58 stroeder Exp $
7+
$Id: slapdtest.py,v 1.17 2017/08/15 16:39:26 stroeder Exp $
88
99
Python compability note:
1010
This module only works with Python 2.7.x since
@@ -99,7 +99,9 @@ class SlapdObject(object):
9999
# use SASL/EXTERNAL via LDAPI when invoking OpenLDAP CLI tools
100100
cli_sasl_external = True
101101
local_host = '127.0.0.1'
102-
testrunsubdirs = (())
102+
testrunsubdirs = (
103+
'schema',
104+
)
103105
openldap_schema_files = (
104106
'core.schema',
105107
)
@@ -125,6 +127,7 @@ def __init__(self):
125127
self._port = self._avail_tcp_port()
126128
self.server_id = self._port % 4096
127129
self.testrundir = os.path.join(self.TMPDIR, 'python-ldap-test-%d' % self._port)
130+
self._schema_prefix = os.path.join(self.testrundir, 'schema')
128131
self._slapd_conf = os.path.join(self.testrundir, 'slapd.conf')
129132
self._db_directory = os.path.join(self.testrundir, "openldap-data")
130133
self.ldap_uri = "ldap://%s:%d/" % (LOCALHOST, self._port)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy