Skip to content

Commit 0567cd9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2111033 commit 0567cd9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

python/tests/test_value_converter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ async def test_char_internal_type_byte_spectrum(
662662
bytes_under_test = [0x20, 0x41, 0x61, 0x7E]
663663

664664
async with psql_pool.acquire() as conn:
665-
await conn.execute('DROP TABLE IF EXISTS for_char_test')
665+
await conn.execute("DROP TABLE IF EXISTS for_char_test")
666666
await conn.execute(
667667
'CREATE TABLE for_char_test (id INT, c "char")',
668668
)
@@ -672,7 +672,7 @@ async def test_char_internal_type_byte_spectrum(
672672
[i, b],
673673
)
674674
await conn.execute(
675-
'INSERT INTO for_char_test (id, c) VALUES ($1, NULL)',
675+
"INSERT INTO for_char_test (id, c) VALUES ($1, NULL)",
676676
[len(bytes_under_test)],
677677
)
678678

@@ -686,9 +686,9 @@ async def test_char_internal_type_byte_spectrum(
686686
value = decoded[i]
687687
assert isinstance(value, str)
688688
assert len(value) == 1
689-
assert ord(value) == b, (
690-
f"byte 0x{b:02x} round-tripped to ord(value)=0x{ord(value):02x}"
691-
)
689+
assert (
690+
ord(value) == b
691+
), f"byte 0x{b:02x} round-tripped to ord(value)=0x{ord(value):02x}"
692692
assert decoded[len(bytes_under_test)] is None
693693

694694

0 commit comments

Comments
 (0)