From: Daniele Varrazzo Date: Sun, 15 Nov 2020 13:17:31 +0000 (+0000) Subject: Dropped now redundant copy test X-Git-Tag: 3.0.dev0~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d507f7f7db005894f5fca778fbe770486910f9c;p=thirdparty%2Fpsycopg.git Dropped now redundant copy test --- diff --git a/tests/test_copy.py b/tests/test_copy.py index 49caca46a..6596d71ac 100644 --- a/tests/test_copy.py +++ b/tests/test_copy.py @@ -111,20 +111,6 @@ def test_copy_bad_result(conn): pass -@pytest.mark.parametrize( - "format, buffer", - [(Format.TEXT, "sample_text"), (Format.BINARY, "sample_binary")], -) -def test_copy_in_buffers_with(conn, format, buffer): - cur = conn.cursor() - ensure_table(cur, sample_tabledef) - with cur.copy(f"copy copy_in from stdin (format {format.name})") as copy: - copy.write(globals()[buffer]) - - data = cur.execute("select * from copy_in order by 1").fetchall() - assert data == sample_records - - def test_copy_in_str(conn): cur = conn.cursor() ensure_table(cur, sample_tabledef)