Skip to content

Commit c09352e

Browse files
Test improvements.
1 parent 3db2ee9 commit c09352e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/test_1000_module.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ def test_1008(self):
250250
)
251251
self.assertIs(oracledb.VECTOR_FORMAT_INT8, oracledb.VectorFormat.INT8)
252252

253+
def test_1009(self):
254+
"1009 - test enable_thin_mode()"
255+
if test_env.get_is_thin():
256+
oracledb.enable_thin_mode()
257+
with self.assertRaisesFullCode("DPY-2019"):
258+
oracledb.init_oracle_client()
259+
else:
260+
with self.assertRaisesFullCode("DPY-2053"):
261+
oracledb.enable_thin_mode()
262+
253263

254264
if __name__ == "__main__":
255265
test_env.run_test_cases()

tests/test_3700_var.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ def test_3731(self):
512512

513513
def test_3732(self):
514514
"3732 - test encoding_errors"
515+
if test_env.get_charset() != "AL32UTF8":
516+
self.skipTest("Database character set must be AL32UTF8")
515517
str_value = "Я"
516518
replacement_char = "�"
517519
invalid_bytes = str_value.encode("windows-1251")

0 commit comments

Comments
 (0)