9
9
)
10
10
from sqlalchemy .testing .suite import HasIndexTest as _HasIndexTest
11
11
from sqlalchemy .testing .suite import HasTableTest as _HasTableTest
12
+ from sqlalchemy .testing .suite import IntegerTest as _IntegerTest
12
13
from sqlalchemy .testing .suite import InsertBehaviorTest as _InsertBehaviorTest
13
14
from sqlalchemy .testing .suite import IsolationLevelTest as _IsolationLevelTest
14
15
from sqlalchemy .testing .suite import (
@@ -417,24 +418,19 @@ def test_no_results_for_non_returning_insert(self):
417
418
pass
418
419
419
420
420
- class IsolationLevelTest ( _IsolationLevelTest ):
421
- def test_all_levels ( self ):
422
- if not config . db . dialect . _is_v232plus :
423
- # TODO: enable when READ COMMITTED no longer a preview feature, since
424
- # SET CLUSTER SETTING cannot be used inside a multi-statement transaction
425
- super (). test_all_levels ()
421
+ class IntegerTest ( _IntegerTest ):
422
+ @ _IntegerTest . _huge_ints ()
423
+ def test_huge_int ( self , integer_round_trip , intvalue ) :
424
+ if config . db . dialect . driver != "asyncpg" :
425
+ super (). test_huge_int ( integer_round_trip , intvalue )
426
+
426
427
428
+ class IsolationLevelTest (_IsolationLevelTest ):
427
429
@skip ("cockroachdb" )
428
430
def test_dialect_user_setting_is_restored (self ):
429
431
# IndexError: list index out of range
430
432
pass
431
433
432
- def test_non_default_isolation_level (self ):
433
- if not config .db .dialect ._is_v232plus :
434
- # TODO: enable when READ COMMITTED no longer a preview feature, since
435
- # SET CLUSTER SETTING cannot be used inside a multi-statement transaction
436
- super ().test_non_default_isolation_level ()
437
-
438
434
439
435
class LongNameBlowoutTest (_LongNameBlowoutTest ):
440
436
@testing .combinations (
@@ -450,6 +446,18 @@ def test_long_convention_name(self, type_, metadata, connection):
450
446
super ().test_long_convention_name (type_ , metadata , connection , None )
451
447
452
448
449
+ class NumericTest (_NumericTest ):
450
+ def test_numeric_as_float (self , do_numeric_test ):
451
+ # psycopg.errors.InvalidParameterValue: unsupported binary operator: <decimal> + <float>
452
+ if config .db .dialect .driver != "psycopg" :
453
+ super ().test_numeric_as_float (do_numeric_test )
454
+
455
+ def test_numeric_null_as_float (self , do_numeric_test ):
456
+ # psycopg.errors.InvalidParameterValue: unsupported binary operator: <decimal> + <float>
457
+ if config .db .dialect .driver != "psycopg" :
458
+ super ().test_numeric_null_as_float (do_numeric_test )
459
+
460
+
453
461
class QuotedNameArgumentTest (_QuotedNameArgumentTest ):
454
462
def quote_fixtures (fn ):
455
463
return testing .combinations (
@@ -464,18 +472,6 @@ def test_get_indexes(self, name):
464
472
super ().test_get_indexes (name , None )
465
473
466
474
467
- class NumericTest (_NumericTest ):
468
- def test_numeric_as_float (self , do_numeric_test ):
469
- # psycopg.errors.InvalidParameterValue: unsupported binary operator: <decimal> + <float>
470
- if config .db .dialect .driver != "psycopg" :
471
- super ().test_numeric_as_float (do_numeric_test )
472
-
473
- def test_numeric_null_as_float (self , do_numeric_test ):
474
- # psycopg.errors.InvalidParameterValue: unsupported binary operator: <decimal> + <float>
475
- if config .db .dialect .driver != "psycopg" :
476
- super ().test_numeric_null_as_float (do_numeric_test )
477
-
478
-
479
475
class TrueDivTest (_TrueDivTest ):
480
476
@skip ("cockroachdb" )
481
477
def test_floordiv_integer (self ):
0 commit comments