Skip to content

Commit 408f368

Browse files
Avoid spurious errors due to the environment variable TNS_ADMIN being
unset or set to an empty or invalid value.
1 parent 76ad274 commit 408f368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_1100_connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ def test_1104_autocommit(self):
138138

139139
def test_1105_bad_connect_string(self):
140140
"1105 - connection to database with bad connect string"
141-
self.assertRaisesRegex(oracledb.DatabaseError, "^DPY-4000:|ORA-12154:",
141+
self.assertRaisesRegex(oracledb.DatabaseError,
142+
"^DPY-4000:|^DPY-4026:|^DPY-4027:|ORA-12154:",
142143
oracledb.connect, test_env.get_main_user())
143144
self.assertRaisesRegex(oracledb.DatabaseError, "^DPY-4000:|^DPY-4001:",
144145
oracledb.connect, test_env.get_main_user() + \

0 commit comments

Comments
 (0)