summaryrefslogtreecommitdiff
path: root/test/requirements.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2023-04-26 21:40:38 +0200
committerMike Bayer <mike_mp@zzzcomputing.com>2023-05-09 10:14:58 -0400
commitff821e57c960f095ab2988a0f892b3127374f498 (patch)
tree4dc3c70ff635ccaa77702976326e5c83b279d19c /test/requirements.py
parent39c8e95b1f50190ff30a836b2bcf13ba2cacc052 (diff)
downloadsqlalchemy-ff821e57c960f095ab2988a0f892b3127374f498.tar.gz
Ensure float are not implemented as numeric
Fixed the base class for dialect-specific float/double types; Oracle :class:`_oracle.BINARY_DOUBLE` now subclasses :class:`_sqltypes.Double`, and internal types for :class:`_sqltypes.Float` for asyncpg and pg8000 now correctly subclass :class:`_sqltypes.Float`. Added suite tests to ensure that floating point types, such as class:`_types.Float` and :class:`_types.Double` are not resolved as class:`_types.Numeric` in the dialect, since it may not compatible in all cases, such as when casting a value. Change-Id: I20b814e8e029d57921d9728a55f2570f74c35c87
Diffstat (limited to 'test/requirements.py')
-rw-r--r--test/requirements.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/requirements.py b/test/requirements.py
index 3c72cd07d..ae7200238 100644
--- a/test/requirements.py
+++ b/test/requirements.py
@@ -1447,6 +1447,10 @@ class DefaultRequirements(SuiteRequirements):
return skip_if(("mssql+pyodbc", None, None, "crashes due to bug #351"))
@property
+ def float_is_numeric(self):
+ return exclusions.fails_if(["oracle"])
+
+ @property
def duplicate_key_raises_integrity_error(self):
return exclusions.open()