summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-02-15 22:37:37 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-02-15 22:37:37 +0000
commit739b7b0c2551255a1d0e062112fe2dc7d792cc62 (patch)
treeeb79fa3ad0149cb54e349c565c9b2101fddb6605 /test/dialect/test_postgresql.py
parent23735fd8e1a11ae0354fd787b1234386f2f72292 (diff)
downloadsqlalchemy-739b7b0c2551255a1d0e062112fe2dc7d792cc62.tar.gz
some more 2.4 test fixes
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):