diff options
author | Federico Di Gregorio <fog@initd.org> | 2009-11-25 10:38:31 +0100 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2009-11-25 10:38:31 +0100 |
commit | d40a5321f21d26cd800b8a37949f179f878b344c (patch) | |
tree | f442acb550f3c236b96017ea1b06d8b910fb8fab /tests | |
parent | 7b730f3935c4bef8c2215edb1a03a2b15f80b2a0 (diff) | |
download | psycopg2-d40a5321f21d26cd800b8a37949f179f878b344c.tar.gz |
Fixed test broken by float precision fix
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/types_basic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/types_basic.py b/tests/types_basic.py index 180bb2a..72d1f41 100755 --- a/tests/types_basic.py +++ b/tests/types_basic.py @@ -50,9 +50,9 @@ class TypesBasicTests(unittest.TestCase): self.failUnless(s == 1971, "wrong integer quoting: " + str(s)) s = self.execute("SELECT %s AS foo", (1971L,)) self.failUnless(s == 1971L, "wrong integer quoting: " + str(s)) - # Python 2.4 defaults to Decimal? + # Python 2.4 defaults to Decimal? (Apparently it does not.) if sys.version_info[0] >= 2 and sys.version_info[1] >= 4: - s = self.execute("SELECT %s AS foo", (19.10,)) + s = self.execute("SELECT %s AS foo", (decimal.Decimal("19.10"),)) self.failUnless(s - decimal.Decimal("19.10") == 0, "wrong decimal quoting: " + str(s)) else: |