mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-06 08:55:46 +03:00
Preparing 1.99.12.
This commit is contained in:
parent
c787de5aad
commit
131b8ac1c5
|
@ -44,10 +44,10 @@ class TypesBasicTests(TestCase):
|
||||||
self.failUnless(s == 19.10, "wrong float quoting: " + str(s))
|
self.failUnless(s == 19.10, "wrong float quoting: " + str(s))
|
||||||
|
|
||||||
def testBinary(self):
|
def testBinary(self):
|
||||||
s = ''.join([asc(x) for x in range(256)])
|
s = ''.join([chr(x) for x in range(256)])
|
||||||
b = psycopg.Binary(s)
|
b = psycopg.Binary(s)
|
||||||
self.failUnless(self.execute("SELECT %s AS foo", (b,)) == s,
|
self.failUnless(self.execute("SELECT %s::bytea AS foo", (b,)) == s,
|
||||||
"wrong binary quoting: " + s)
|
"wrong binary quoting")
|
||||||
|
|
||||||
class TypesBasicSuite(TestSuite):
|
class TypesBasicSuite(TestSuite):
|
||||||
"""Build a suite of all tests."""
|
"""Build a suite of all tests."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user