We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bce5e1 commit bcf5627Copy full SHA for bcf5627
Lib/test/test_sqlite3/test_dbapi.py
@@ -1655,8 +1655,6 @@ def test_cursor_executescript_with_null_characters(self):
1655
insert into a(i) values (5);
1656
""")
1657
1658
- # TODO: RUSTPYTHON
1659
- @unittest.expectedFailure
1660
def test_cursor_executescript_with_surrogates(self):
1661
con = sqlite.connect(":memory:")
1662
cur = con.cursor()
stdlib/src/sqlite.rs
@@ -1640,6 +1640,8 @@ mod _sqlite {
1640
script: PyStrRef,
1641
vm: &VirtualMachine,
1642
) -> PyResult<PyRef<Self>> {
1643
+ script.ensure_valid_utf8(vm)?;
1644
+
1645
let db = zelf.connection.db_lock(vm)?;
1646
1647
db.sql_limit(script.byte_len(), vm)?;
0 commit comments