mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 10:23:43 +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
e7fc781280
commit
755a5b143f
|
@ -25,7 +25,7 @@
|
|||
import os
|
||||
import sys
|
||||
import string
|
||||
from testutils import unittest, decorate_all_tests, skip_if_no_iobase
|
||||
from testutils import unittest, decorate_all_tests, skip_if_no_iobase, skip_before_postgres
|
||||
from cStringIO import StringIO
|
||||
from itertools import cycle, izip
|
||||
|
||||
|
@ -285,6 +285,7 @@ class CopyTests(unittest.TestCase):
|
|||
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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user