]> 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:54:23 +0000 (15:54 -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

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

index 2aad4dc330fc58066cedc3138b7fcaca47cacbb6..8c2fe136cc33c7319bdff267a4fa3ae48d42dc5b 100644 (file)
@@ -1802,7 +1802,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 d5a5c18c3ebfa1c4e955e10526bf5d9ea1eeac8d..c8d0bbacc13dd86a2852701960e8286fda63888c 100644 (file)
@@ -1793,7 +1793,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: