From: Denis Laxalde Date: Tue, 2 Nov 2021 09:18:06 +0000 (+0100) Subject: Rename a variable in tests/pq/test_copy.py X-Git-Tag: 3.0.2~5^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374b56a410c7000c4180afbe3cbe020e710b0444;p=thirdparty%2Fpsycopg.git Rename a variable in tests/pq/test_copy.py To silent a 'incompatible types in assignment' mypy error. --- diff --git a/tests/pq/test_copy.py b/tests/pq/test_copy.py index fa275adf1..6d871247a 100644 --- a/tests/pq/test_copy.py +++ b/tests/pq/test_copy.py @@ -12,7 +12,7 @@ sample_text = b"""\ 40\t\\N\tworld """ -sample_binary = """ +sample_binary_value = """ 5047 434f 5059 0aff 0d0a 00 00 0000 0000 0000 00 00 0300 0000 0400 0000 0a00 0000 0400 0000 1400 0000 0568 656c 6c6f @@ -23,7 +23,8 @@ ff ff """ sample_binary_rows = [ - bytes.fromhex("".join(row.split())) for row in sample_binary.split("\n\n") + bytes.fromhex("".join(row.split())) + for row in sample_binary_value.split("\n\n") ] sample_binary = b"".join(sample_binary_rows)