]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix test due to merge of 11370 with 5252
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Dec 2024 20:54:23 +0000 (15:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Dec 2024 20:55:38 +0000 (15:55 -0500)
Numeric and Float are split out in main so a type cant be both
at the same time.   Also there's no reason to do isinstance(Float)
and isintance(Numeric) even if they are in the same hierarchy.

Change-Id: I2263aaac264673a830b63689d39b6433b32c1d23
(cherry picked from commit b49fcb67afb302d2309efea71cde2a6584c1373c)

test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py

index 6bf7d02c56c2744651e68a165c66b59fc7a2fb69..a2eac4d7f4f989237be6303acea9d3bc42210856 100644 (file)
@@ -1804,7 +1804,7 @@ class MappedColumnTest(fixtures.TestBase, testing.AssertsCompiledSQL):
         is_true(User.__table__.c.reverse_u_optional_data.nullable)
 
         is_true(isinstance(User.__table__.c.float_data.type, Float))
-        is_true(isinstance(User.__table__.c.float_data.type, Numeric))
+
         is_not(User.__table__.c.decimal_data.type, our_type)
 
         if compat.py310:
index 929041ccfbff2f4e943df10cd78414002080c0cf..5026e676a76d52643fbdc90f60f2b0ce48bdbf07 100644 (file)
@@ -1795,7 +1795,7 @@ class MappedColumnTest(fixtures.TestBase, testing.AssertsCompiledSQL):
         is_true(User.__table__.c.reverse_u_optional_data.nullable)
 
         is_true(isinstance(User.__table__.c.float_data.type, Float))
-        is_true(isinstance(User.__table__.c.float_data.type, Numeric))
+
         is_not(User.__table__.c.decimal_data.type, our_type)
 
         if compat.py310: