summaryrefslogtreecommitdiff
path: root/tests/test_quote.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_quote.py')
-rwxr-xr-xtests/test_quote.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_quote.py b/tests/test_quote.py
index 23bc61f..4ee451f 100755
--- a/tests/test_quote.py
+++ b/tests/test_quote.py
@@ -83,6 +83,10 @@ class QuotingTestCase(unittest.TestCase):
else:
res = curs.fetchone()[0].tobytes()
+ if res[0] in (b('x'), ord(b('x'))) and self.conn.server_version >= 90000:
+ return self.skipTest(
+ "bytea broken with server >= 9.0, libpq < 9")
+
self.assertEqual(res, data)
self.assert_(not self.conn.notices)