diff options
| author | Federico Di Gregorio <fog@initd.org> | 2005-03-03 06:52:28 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2005-03-03 06:52:28 +0000 |
| commit | 131b8ac1c508656c3311fec40e8b068cdee770c6 (patch) | |
| tree | 7cfdcc5795f6e44bdf24f43cb433814ec1c8eb24 | |
| parent | c787de5aad6513745534facb120964ddb64e2e61 (diff) | |
| download | psycopg2-131b8ac1c508656c3311fec40e8b068cdee770c6.tar.gz | |
Preparing 1.99.12.1_99_12
| -rw-r--r-- | tests/types_basic.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/types_basic.py b/tests/types_basic.py index 18ae759..d12c0a0 100644 --- a/tests/types_basic.py +++ b/tests/types_basic.py @@ -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.""" |
