diff --git a/tests/test_async.py b/tests/test_async.py index b379baea..e7fc1a95 100755 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -97,6 +97,7 @@ class AsyncTests(ConnectingTestCase): self.assertFalse(self.conn.isexecuting()) self.assertEquals(cur.fetchone()[0], "a") + @slow @skip_before_postgres(8, 2) def test_async_callproc(self): cur = self.conn.cursor() @@ -107,6 +108,7 @@ class AsyncTests(ConnectingTestCase): self.assertFalse(self.conn.isexecuting()) self.assertEquals(cur.fetchall()[0][0], '') + @slow def test_async_after_async(self): cur = self.conn.cursor() cur2 = self.conn.cursor() diff --git a/tests/test_connection.py b/tests/test_connection.py index a5b5c418..1ea00da3 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -125,6 +125,7 @@ class ConnectionTests(ConnectingTestCase): self.assert_('table3' in conn.notices[2]) self.assert_('table4' in conn.notices[3]) + @slow def test_notices_limited(self): conn = self.conn cur = conn.cursor() @@ -138,6 +139,7 @@ class ConnectionTests(ConnectingTestCase): self.assertEqual(50, len(conn.notices)) self.assert_('table99' in conn.notices[-1], conn.notices[-1]) + @slow def test_notices_deque(self): from collections import deque diff --git a/tests/test_copy.py b/tests/test_copy.py index 8cbe4eaa..3aa509b5 100755 --- a/tests/test_copy.py +++ b/tests/test_copy.py @@ -312,6 +312,7 @@ class CopyTests(ConnectingTestCase): curs.copy_from, StringIO('aaa\nbbb\nccc\n'), 'tcopy') self.assertEqual(curs.rowcount, -1) + @slow def test_copy_from_segfault(self): # issue #219 script = ("""\ @@ -330,6 +331,7 @@ conn.close() proc.communicate() self.assertEqual(0, proc.returncode) + @slow def test_copy_to_segfault(self): # issue #219 script = ("""\ diff --git a/tests/test_lobject.py b/tests/test_lobject.py index 4da20e95..3379ec0c 100755 --- a/tests/test_lobject.py +++ b/tests/test_lobject.py @@ -29,8 +29,8 @@ from functools import wraps import psycopg2 import psycopg2.extensions -from testutils import unittest, decorate_all_tests, skip_if_tpc_disabled -from testutils import ConnectingTestCase, skip_if_green +from testutils import (unittest, decorate_all_tests, skip_if_tpc_disabled, + ConnectingTestCase, skip_if_green, slow) def skip_if_no_lo(f): @@ -191,6 +191,7 @@ class LargeObjectTests(LargeObjectTestCase): self.assertEqual(x, u"some") self.assertEqual(lo.read(), u" data " + snowman) + @slow def test_read_large(self): lo = self.conn.lobject() data = "data" * 1000000 diff --git a/tests/test_module.py b/tests/test_module.py index 6a1606d6..b166bac6 100755 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -26,8 +26,8 @@ import os import sys from subprocess import Popen -from testutils import unittest, skip_before_python, skip_before_postgres -from testutils import ConnectingTestCase, skip_copy_if_green, script_to_py3 +from testutils import (unittest, skip_before_python, skip_before_postgres, + ConnectingTestCase, skip_copy_if_green, script_to_py3, slow) import psycopg2 @@ -311,6 +311,7 @@ class ExceptionsTestCase(ConnectingTestCase): class TestExtensionModule(unittest.TestCase): + @slow def test_import_internal(self): # check that the internal package can be imported "naked" # we may break this property if there is a compelling reason to do so, diff --git a/tests/test_notify.py b/tests/test_notify.py index 4e99a3e9..0e74e1d5 100755 --- a/tests/test_notify.py +++ b/tests/test_notify.py @@ -111,6 +111,7 @@ conn.close() self.assertEqual(pids[name], pid) names.pop(name) # raise if name found twice + @slow def test_notifies_received_on_execute(self): self.autocommit(self.conn) self.listen('foo')