mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Skip rowcount on copy test on postgres < 8.2
It looks like the server doesn't send the message.
This commit is contained in:
parent
e9335b08f8
commit
06f64fbe70
|
@ -25,7 +25,7 @@
|
||||||
import sys
|
import sys
|
||||||
import string
|
import string
|
||||||
from testutils import unittest, ConnectingTestCase, decorate_all_tests
|
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 cStringIO import StringIO
|
||||||
from itertools import cycle, izip
|
from itertools import cycle, izip
|
||||||
|
|
||||||
|
@ -272,6 +272,7 @@ class CopyTests(ConnectingTestCase):
|
||||||
curs.execute("select count(*) from manycols;")
|
curs.execute("select count(*) from manycols;")
|
||||||
self.assertEqual(curs.fetchone()[0], 2)
|
self.assertEqual(curs.fetchone()[0], 2)
|
||||||
|
|
||||||
|
@skip_before_postgres(8, 2) # they don't send the count
|
||||||
def test_copy_rowcount(self):
|
def test_copy_rowcount(self):
|
||||||
curs = self.conn.cursor()
|
curs = self.conn.cursor()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user