Skip to content

Commit 5cd753e

Browse files
Test suite updates.
1 parent 8c0581c commit 5cd753e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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()

tests/test_2400_pool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ def test_2411(skip_unless_thick_mode, test_env):
434434
min=2,
435435
max=8,
436436
increment=3,
437-
getmode=oracledb.POOL_GETMODE_NOWAIT,
438437
session_callback=callback,
439438
)
440439
tags = [
@@ -1066,6 +1065,6 @@ def test_2457(skip_if_drcp, test_env):
10661065

10671066
def test_2458(test_env):
10681067
"2458 - connection to database with bad password"
1069-
pool = test_env.get_pool(password=test_env.main_password + "X")
10701068
with test_env.assert_raises_full_code("ORA-01017"):
1069+
pool = test_env.get_pool(password=test_env.main_password + "X")
10711070
pool.acquire()

0 commit comments

Comments
 (0)