Skip to content

Commit 53c8300

Browse files
If the main schema does not exist the initialization will fail, but we
still need to enable thick mode if that is desired.
1 parent ed5a4c4 commit 53c8300

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,10 @@ def get_admin_connection(self, use_async=False):
385385
"""
386386
Returns an administrative connection to the database.
387387
"""
388-
self._initialize()
389388
if not self.admin_user or not self.admin_password:
390389
pytest.skip("missing administrative credentials")
390+
if self.use_thick_mode and oracledb.is_thin_mode():
391+
oracledb.init_oracle_client(lib_dir=self.oracle_client_path)
391392
params = self.get_connect_params()
392393
if self.admin_user.upper() == "SYS":
393394
params = params.copy()

0 commit comments

Comments
 (0)