summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-02 02:58:22 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-02 02:58:22 +0000
commit4cc8afd3b1526b621e4f6d2f63007d3c46b860f0 (patch)
treefe32e4a0acb0cb912d78e7bd8e0ace2146a60ec3
parent8a2e9eabcae94013b4d5987b4bc31487efdef102 (diff)
downloadpsycopg2-fast-test.tar.gz
Further skipping of slow testsfast-test
-rwxr-xr-xtests/test_async.py2
-rwxr-xr-xtests/test_connection.py2
-rwxr-xr-xtests/test_copy.py2
-rwxr-xr-xtests/test_lobject.py5
-rwxr-xr-xtests/test_module.py5
-rwxr-xr-xtests/test_notify.py1
6 files changed, 13 insertions, 4 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index b379bae..e7fc1a9 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 a5b5c41..1ea00da 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 8cbe4ea..3aa509b 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 4da20e9..3379ec0 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 6a1606d..b166bac 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 4e99a3e..0e74e1d 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')