Skip to content

Commit 7fe0a8e

Browse files
Use the context manager to ensure that subsequent tests use the default
value!
1 parent 94874ea commit 7fe0a8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_4300_cursor_other.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -905,13 +905,13 @@ def test_4369_bind_order_for_plsql(self):
905905
plsql = f"begin {sql}; end;"
906906
self.cursor.execute(plsql, rows[1])
907907
self.connection.commit()
908-
oracledb.defaults.fetch_lobs = False
909-
self.cursor.execute("""
910-
select IntCol, CLOBCol, ExtraNumCol1
911-
from TestCLOBs
912-
order by IntCol""")
913-
fetched_rows = self.cursor.fetchall()
914-
self.assertEqual(fetched_rows, rows)
908+
with test_env.FetchLobsContextManager(False):
909+
self.cursor.execute("""
910+
select IntCol, CLOBCol, ExtraNumCol1
911+
from TestCLOBs
912+
order by IntCol""")
913+
fetched_rows = self.cursor.fetchall()
914+
self.assertEqual(fetched_rows, rows)
915915

916916
if __name__ == "__main__":
917917
test_env.run_test_cases()

0 commit comments

Comments
 (0)