diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-12-15 10:56:18 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-12-17 11:00:55 -0500 |
| commit | a5d027ab665585f65581fdc6fd2bd00874d3c714 (patch) | |
| tree | 45a2df5c0d2aceb584272d09cc1d9cbefd84722a /lib/sqlalchemy/testing | |
| parent | 19e13cf3d203b59ad285ab0193cb9fc53c4fcff2 (diff) | |
| download | sqlalchemy-a5d027ab665585f65581fdc6fd2bd00874d3c714.tar.gz | |
Open up all cx_Oracle numeric tests, finish infinity support
Added some additional rules to fully handle ``Decimal('Infinity')``,
``Decimal('-Infinity')`` values with cx_Oracle numerics when using
``asdecimal=True``.
Allow remaining cx_Oracle numeric tests that were waiting
for the refactor to be finished and forgot to get enabled.
Change-Id: I1e2365176e34559c0230c84f800a7cfe0a034ed5
Fixes: #4064
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_types.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_types.py b/lib/sqlalchemy/testing/suite/test_types.py index b9bb179ab..e419fb450 100644 --- a/lib/sqlalchemy/testing/suite/test_types.py +++ b/lib/sqlalchemy/testing/suite/test_types.py @@ -380,8 +380,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): filter_=lambda n: n is not None and round(n, 5) or None ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") @testing.requires.precision_generic_float_type def test_float_custom_scale(self): self._do_test( @@ -391,8 +389,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): check_scale=True ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") def test_numeric_as_decimal(self): self._do_test( Numeric(precision=8, scale=4), @@ -400,8 +396,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): [decimal.Decimal("15.7563")], ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") def test_numeric_as_float(self): self._do_test( Numeric(precision=8, scale=4, asdecimal=False), @@ -409,8 +403,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): [15.7563], ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") @testing.requires.fetch_null_from_numeric def test_numeric_null_as_decimal(self): self._do_test( @@ -427,8 +419,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): [None], ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") @testing.requires.floats_to_four_decimals def test_float_as_decimal(self): self._do_test( @@ -437,8 +427,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): [decimal.Decimal("15.7563"), None], ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") def test_float_as_float(self): self._do_test( Float(precision=8), @@ -464,8 +452,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): # ) # eq_(val, expr) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") @testing.requires.precision_numerics_general def test_precision_decimal(self): numbers = set([ @@ -480,8 +466,6 @@ class NumericTest(_LiteralRoundTripFixture, fixtures.TestBase): numbers, ) - @testing.skip_if( - "oracle", "temporary skip until cx_oracle refactor is merged") @testing.requires.precision_numerics_enotation_large def test_enotation_decimal(self): """test exceedingly small decimals. |
