From 06f64fbe708cc64055cb8b4941815d4e48cfb691 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 13 May 2014 13:52:21 +0100 Subject: [PATCH] Skip rowcount on copy test on postgres < 8.2 It looks like the server doesn't send the message. --- tests/test_copy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_copy.py b/tests/test_copy.py index 55d267c5..43fa5973 100755 --- a/tests/test_copy.py +++ b/tests/test_copy.py @@ -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()