Skip to content

Commit 1de924c

Browse files
committed
Resolving comments
1 parent c240ad9 commit 1de924c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_003_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def test_setencoding_invalid_encoding(db_connection):
554554
with pytest.raises(ProgrammingError) as exc_info:
555555
db_connection.setencoding(encoding='invalid-encoding-name')
556556

557-
assert "Unknown encoding" in str(exc_info.value), "Should raise ProgrammingError for invalid encoding"
557+
assert "Unsupported encoding" in str(exc_info.value), "Should raise ProgrammingError for invalid encoding"
558558
assert "invalid-encoding-name" in str(exc_info.value), "Error message should include the invalid encoding name"
559559

560560
def test_setencoding_invalid_ctype(db_connection):
@@ -575,7 +575,7 @@ def test_setencoding_closed_connection(conn_str):
575575
with pytest.raises(InterfaceError) as exc_info:
576576
temp_conn.setencoding(encoding='utf-8')
577577

578-
assert "closed connection" in str(exc_info.value).lower(), "Should raise InterfaceError for closed connection"
578+
assert "Connection is closed" in str(exc_info.value), "Should raise InterfaceError for closed connection"
579579

580580
def test_setencoding_constants_access():
581581
"""Test that SQL_CHAR and SQL_WCHAR constants are accessible."""

0 commit comments

Comments
 (0)