From 826701232c4d82ddf1fe0fd073a1a9f3316d2061 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 30 Dec 2021 12:42:37 +0100 Subject: [PATCH] Removed obsolete Oracle's test_client_encoding() test. encoding and nencoding parameters were deprecated in cx_Oracle 8.2. Moreover, encoding is handled internally between cx_Oracle and Oracle Database and there is no need to test it. --- tests/backends/oracle/tests.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/backends/oracle/tests.py b/tests/backends/oracle/tests.py index a50f38dbe2..6d31d33d57 100644 --- a/tests/backends/oracle/tests.py +++ b/tests/backends/oracle/tests.py @@ -37,12 +37,6 @@ class Tests(unittest.TestCase): cursor.execute("BEGIN %s := 'X'; END; ", [var]) self.assertEqual(var.getvalue(), 'X') - def test_client_encoding(self): - """Client encoding is set correctly.""" - connection.ensure_connection() - self.assertEqual(connection.connection.encoding, 'UTF-8') - self.assertEqual(connection.connection.nencoding, 'UTF-8') - def test_order_of_nls_parameters(self): """ An 'almost right' datetime works with configured NLS parameters