diff options
Diffstat (limited to 'tests/test_with.py')
-rwxr-xr-x | tests/test_with.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_with.py b/tests/test_with.py index b8c043f..c58ea92 100755 --- a/tests/test_with.py +++ b/tests/test_with.py @@ -27,7 +27,7 @@ import psycopg2 import psycopg2.extensions as ext import unittest -from .testutils import ConnectingTestCase, skip_before_postgres +from .testutils import ConnectingTestCase, skip_before_postgres, skip_if_crdb class WithTestCase(ConnectingTestCase): @@ -203,6 +203,7 @@ class WithCursorTestCase(WithTestCase): self.assert_(curs.closed) self.assert_(closes) + @skip_if_crdb def test_exception_swallow(self): # bug #262: __exit__ calls cur.close() that hides the exception # with another error. @@ -216,6 +217,7 @@ class WithCursorTestCase(WithTestCase): else: self.fail("where is my exception?") + @skip_if_crdb @skip_before_postgres(8, 2) def test_named_with_noop(self): with self.conn.cursor('named'): |