mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-06 00:45:47 +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))
|
||||
|
||||
def testBinary(self):
|
||||
s = ''.join([asc(x) for x in range(256)])
|
||||
b = psycopg.Binary(s)
|
||||
self.failUnless(self.execute("SELECT %s AS foo", (b,)) == s,
|
||||
"wrong binary quoting: " + s)
|
||||
s = ''.join([chr(x) for x in range(256)])
|
||||
b = psycopg.Binary(s)
|
||||
self.failUnless(self.execute("SELECT %s::bytea AS foo", (b,)) == s,
|
||||
"wrong binary quoting")
|
||||
|
||||
class TypesBasicSuite(TestSuite):
|
||||
"""Build a suite of all tests."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user