summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py
index fbbc394c9..b950836a9 100644
--- a/test/dialect/test_postgresql.py
+++ b/test/dialect/test_postgresql.py
@@ -208,7 +208,8 @@ class FloatCoercionTest(TablesTest, AssertsExecutionResults):
return round(x, 9)
elif isinstance(x, decimal.Decimal):
# really ?
- x = x.shift(decimal.Decimal(9)).to_integral() / pow(10, 9)
+ # (can also use shift() here but that is 2.6 only)
+ x = (x * decimal.Decimal("1000000000")).to_integral() / pow(10, 9)
return x
@testing.resolve_artifact_names
def test_float_coercion(self):