File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
560560def 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
580580def test_setencoding_constants_access ():
581581 """Test that SQL_CHAR and SQL_WCHAR constants are accessible."""
You can’t perform that action at this time.
0 commit comments