summaryrefslogtreecommitdiff
path: root/test/dialect/oracle/test_dialect.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-10-30 22:00:25 +0200
committerMike Bayer <mike_mp@zzzcomputing.com>2021-11-01 15:11:25 -0400
commit36e7aebd8d6faac77570403e99f9aa7b2330fa59 (patch)
treef45950f61a4b27f128518be52157021ca4f4e8f7 /test/dialect/oracle/test_dialect.py
parenta99ea884403de1e1f762e9b1eb635d7fc6ef8e6f (diff)
downloadsqlalchemy-36e7aebd8d6faac77570403e99f9aa7b2330fa59.tar.gz
First round of removal of python 2
References: #4600 Change-Id: I61e35bc93fe95610ae75b31c18a3282558cd4ffe
Diffstat (limited to 'test/dialect/oracle/test_dialect.py')
-rw-r--r--test/dialect/oracle/test_dialect.py45
1 files changed, 2 insertions, 43 deletions
diff --git a/test/dialect/oracle/test_dialect.py b/test/dialect/oracle/test_dialect.py
index 554e5f18b..f287a9a0b 100644
--- a/test/dialect/oracle/test_dialect.py
+++ b/test/dialect/oracle/test_dialect.py
@@ -256,7 +256,6 @@ class EncodingErrorsTest(fixtures.TestBase):
assert_raises(UnicodeDecodeError, outconverter, utf8_w_errors)
@_oracle_char_combinations
- @testing.requires.python3
def test_older_cx_oracle_warning(self, cx_Oracle, cx_oracle_type):
cx_Oracle.version = "6.3"
@@ -277,46 +276,7 @@ class EncodingErrorsTest(fixtures.TestBase):
)
@_oracle_char_combinations
- @testing.requires.python2
- def test_encoding_errors_sqla_py2k(
- self,
- cx_Oracle,
- cx_oracle_type,
- ):
- ignore_dialect = cx_oracle.dialect(
- dbapi=cx_Oracle, encoding_errors="ignore"
- )
-
- ignore_outputhandler = (
- ignore_dialect._generate_connection_outputtype_handler()
- )
-
- cursor = mock.Mock()
- ignore_outputhandler(cursor, "foo", cx_oracle_type, None, None, None)
- outconverter = cursor.mock_calls[0][2]["outconverter"]
- self._assert_errorhandler(outconverter, True)
-
- @_oracle_char_combinations
- @testing.requires.python2
- def test_no_encoding_errors_sqla_py2k(
- self,
- cx_Oracle,
- cx_oracle_type,
- ):
- plain_dialect = cx_oracle.dialect(dbapi=cx_Oracle)
-
- plain_outputhandler = (
- plain_dialect._generate_connection_outputtype_handler()
- )
-
- cursor = mock.Mock()
- plain_outputhandler(cursor, "foo", cx_oracle_type, None, None, None)
- outconverter = cursor.mock_calls[0][2]["outconverter"]
- self._assert_errorhandler(outconverter, False)
-
- @_oracle_char_combinations
- @testing.requires.python3
- def test_encoding_errors_cx_oracle_py3k(
+ def test_encoding_errors_cx_oracle(
self,
cx_Oracle,
cx_oracle_type,
@@ -345,8 +305,7 @@ class EncodingErrorsTest(fixtures.TestBase):
)
@_oracle_char_combinations
- @testing.requires.python3
- def test_no_encoding_errors_cx_oracle_py3k(
+ def test_no_encoding_errors_cx_oracle(
self,
cx_Oracle,
cx_oracle_type,