summaryrefslogtreecommitdiff
path: root/tests/test_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_module.py')
-rwxr-xr-xtests/test_module.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_module.py b/tests/test_module.py
index 416e623..2e8b753 100755
--- a/tests/test_module.py
+++ b/tests/test_module.py
@@ -32,7 +32,7 @@ from weakref import ref
import unittest
from .testutils import (skip_before_postgres,
- ConnectingTestCase, skip_copy_if_green, slow, StringIO)
+ ConnectingTestCase, skip_copy_if_green, skip_if_crdb, slow, StringIO)
import psycopg2
@@ -216,6 +216,7 @@ class ExceptionsTestCase(ConnectingTestCase):
gc.collect()
assert(w() is None)
+ @skip_if_crdb
@skip_copy_if_green
def test_diagnostics_copy(self):
f = StringIO()
@@ -244,6 +245,7 @@ class ExceptionsTestCase(ConnectingTestCase):
self.assertEqual(diag1.sqlstate, '42601')
self.assertEqual(diag2.sqlstate, '42P01')
+ @skip_if_crdb
def test_diagnostics_from_commit(self):
cur = self.conn.cursor()
cur.execute("""
@@ -259,6 +261,7 @@ class ExceptionsTestCase(ConnectingTestCase):
e = exc
self.assertEqual(e.diag.sqlstate, '23503')
+ @skip_if_crdb
@skip_before_postgres(9, 3)
def test_9_3_diagnostics(self):
cur = self.conn.cursor()
@@ -299,6 +302,7 @@ class ExceptionsTestCase(ConnectingTestCase):
self.assertEqual(e.pgcode, e1.pgcode)
self.assert_(e1.cursor is None)
+ @skip_if_crdb
def test_pickle_connection_error(self):
# segfaults on psycopg 2.5.1 - see ticket #170
try: