mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
Further skipping of slow tests
This commit is contained in:
parent
626e57acda
commit
d8b1fbd905
|
@ -97,6 +97,7 @@ class AsyncTests(ConnectingTestCase):
|
||||||
self.assertFalse(self.conn.isexecuting())
|
self.assertFalse(self.conn.isexecuting())
|
||||||
self.assertEquals(cur.fetchone()[0], "a")
|
self.assertEquals(cur.fetchone()[0], "a")
|
||||||
|
|
||||||
|
@slow
|
||||||
@skip_before_postgres(8, 2)
|
@skip_before_postgres(8, 2)
|
||||||
def test_async_callproc(self):
|
def test_async_callproc(self):
|
||||||
cur = self.conn.cursor()
|
cur = self.conn.cursor()
|
||||||
|
@ -107,6 +108,7 @@ class AsyncTests(ConnectingTestCase):
|
||||||
self.assertFalse(self.conn.isexecuting())
|
self.assertFalse(self.conn.isexecuting())
|
||||||
self.assertEquals(cur.fetchall()[0][0], '')
|
self.assertEquals(cur.fetchall()[0][0], '')
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_async_after_async(self):
|
def test_async_after_async(self):
|
||||||
cur = self.conn.cursor()
|
cur = self.conn.cursor()
|
||||||
cur2 = self.conn.cursor()
|
cur2 = self.conn.cursor()
|
||||||
|
|
|
@ -125,6 +125,7 @@ class ConnectionTests(ConnectingTestCase):
|
||||||
self.assert_('table3' in conn.notices[2])
|
self.assert_('table3' in conn.notices[2])
|
||||||
self.assert_('table4' in conn.notices[3])
|
self.assert_('table4' in conn.notices[3])
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_notices_limited(self):
|
def test_notices_limited(self):
|
||||||
conn = self.conn
|
conn = self.conn
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
@ -138,6 +139,7 @@ class ConnectionTests(ConnectingTestCase):
|
||||||
self.assertEqual(50, len(conn.notices))
|
self.assertEqual(50, len(conn.notices))
|
||||||
self.assert_('table99' in conn.notices[-1], conn.notices[-1])
|
self.assert_('table99' in conn.notices[-1], conn.notices[-1])
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_notices_deque(self):
|
def test_notices_deque(self):
|
||||||
from collections import deque
|
from collections import deque
|
||||||
|
|
||||||
|
|
|
@ -312,6 +312,7 @@ class CopyTests(ConnectingTestCase):
|
||||||
curs.copy_from, StringIO('aaa\nbbb\nccc\n'), 'tcopy')
|
curs.copy_from, StringIO('aaa\nbbb\nccc\n'), 'tcopy')
|
||||||
self.assertEqual(curs.rowcount, -1)
|
self.assertEqual(curs.rowcount, -1)
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_copy_from_segfault(self):
|
def test_copy_from_segfault(self):
|
||||||
# issue #219
|
# issue #219
|
||||||
script = ("""\
|
script = ("""\
|
||||||
|
@ -330,6 +331,7 @@ conn.close()
|
||||||
proc.communicate()
|
proc.communicate()
|
||||||
self.assertEqual(0, proc.returncode)
|
self.assertEqual(0, proc.returncode)
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_copy_to_segfault(self):
|
def test_copy_to_segfault(self):
|
||||||
# issue #219
|
# issue #219
|
||||||
script = ("""\
|
script = ("""\
|
||||||
|
|
|
@ -29,8 +29,8 @@ from functools import wraps
|
||||||
|
|
||||||
import psycopg2
|
import psycopg2
|
||||||
import psycopg2.extensions
|
import psycopg2.extensions
|
||||||
from testutils import unittest, decorate_all_tests, skip_if_tpc_disabled
|
from testutils import (unittest, decorate_all_tests, skip_if_tpc_disabled,
|
||||||
from testutils import ConnectingTestCase, skip_if_green
|
ConnectingTestCase, skip_if_green, slow)
|
||||||
|
|
||||||
|
|
||||||
def skip_if_no_lo(f):
|
def skip_if_no_lo(f):
|
||||||
|
@ -191,6 +191,7 @@ class LargeObjectTests(LargeObjectTestCase):
|
||||||
self.assertEqual(x, u"some")
|
self.assertEqual(x, u"some")
|
||||||
self.assertEqual(lo.read(), u" data " + snowman)
|
self.assertEqual(lo.read(), u" data " + snowman)
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_read_large(self):
|
def test_read_large(self):
|
||||||
lo = self.conn.lobject()
|
lo = self.conn.lobject()
|
||||||
data = "data" * 1000000
|
data = "data" * 1000000
|
||||||
|
|
|
@ -26,8 +26,8 @@ import os
|
||||||
import sys
|
import sys
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
|
|
||||||
from testutils import unittest, skip_before_python, skip_before_postgres
|
from testutils import (unittest, skip_before_python, skip_before_postgres,
|
||||||
from testutils import ConnectingTestCase, skip_copy_if_green, script_to_py3
|
ConnectingTestCase, skip_copy_if_green, script_to_py3, slow)
|
||||||
|
|
||||||
import psycopg2
|
import psycopg2
|
||||||
|
|
||||||
|
@ -311,6 +311,7 @@ class ExceptionsTestCase(ConnectingTestCase):
|
||||||
|
|
||||||
|
|
||||||
class TestExtensionModule(unittest.TestCase):
|
class TestExtensionModule(unittest.TestCase):
|
||||||
|
@slow
|
||||||
def test_import_internal(self):
|
def test_import_internal(self):
|
||||||
# check that the internal package can be imported "naked"
|
# check that the internal package can be imported "naked"
|
||||||
# we may break this property if there is a compelling reason to do so,
|
# we may break this property if there is a compelling reason to do so,
|
||||||
|
|
|
@ -111,6 +111,7 @@ conn.close()
|
||||||
self.assertEqual(pids[name], pid)
|
self.assertEqual(pids[name], pid)
|
||||||
names.pop(name) # raise if name found twice
|
names.pop(name) # raise if name found twice
|
||||||
|
|
||||||
|
@slow
|
||||||
def test_notifies_received_on_execute(self):
|
def test_notifies_received_on_execute(self):
|
||||||
self.autocommit(self.conn)
|
self.autocommit(self.conn)
|
||||||
self.listen('foo')
|
self.listen('foo')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user