Skip rowcount on copy test on postgres < 8.2

It looks like the server doesn't send the message.
This commit is contained in:
Daniele Varrazzo 2014-05-13 13:52:21 +01:00
parent e9335b08f8
commit 06f64fbe70

View File

@ -25,7 +25,7 @@
import sys
import string
from testutils import unittest, ConnectingTestCase, decorate_all_tests
from testutils import skip_if_no_iobase
from testutils import skip_if_no_iobase, skip_before_postgres
from cStringIO import StringIO
from itertools import cycle, izip
@ -272,6 +272,7 @@ class CopyTests(ConnectingTestCase):
curs.execute("select count(*) from manycols;")
self.assertEqual(curs.fetchone()[0], 2)
@skip_before_postgres(8, 2) # they don't send the count
def test_copy_rowcount(self):
curs = self.conn.cursor()