diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-15 17:11:07 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-15 17:11:07 +0000 |
| commit | c96ba553dadd921b9e1e0b3d66092a4182036a55 (patch) | |
| tree | af13e2c57137073ff3fe5865c7063b3e31a9d67c /tests/test_cancel.py | |
| parent | e4a84b9ce9bf61a54db998a78fba18c151cde66c (diff) | |
| download | psycopg2-c96ba553dadd921b9e1e0b3d66092a4182036a55.tar.gz | |
Cleanup of skipping of testing methods on certain Py/PG versions
Diffstat (limited to 'tests/test_cancel.py')
| -rwxr-xr-x | tests/test_cancel.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_cancel.py b/tests/test_cancel.py index dcdbf41..6d58ddc 100755 --- a/tests/test_cancel.py +++ b/tests/test_cancel.py @@ -31,7 +31,7 @@ import psycopg2.extensions from psycopg2 import extras from testconfig import dsn -from testutils import unittest, skip_if_no_pg_sleep +from testutils import unittest, skip_before_postgres class CancelTests(unittest.TestCase): @@ -50,7 +50,7 @@ class CancelTests(unittest.TestCase): def test_empty_cancel(self): self.conn.cancel() - @skip_if_no_pg_sleep('conn') + @skip_before_postgres(8, 2) def test_cancel(self): errors = [] @@ -86,7 +86,7 @@ class CancelTests(unittest.TestCase): self.assertEqual(errors, []) - @skip_if_no_pg_sleep('conn') + @skip_before_postgres(8, 2) def test_async_cancel(self): async_conn = psycopg2.connect(dsn, async=True) self.assertRaises(psycopg2.OperationalError, async_conn.cancel) |
