Skip to content

Commit b75a32c

Browse files
committed
Add strict utf8 test
1 parent 4fa4148 commit b75a32c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

singlestoredb/tests/test_basics.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,14 @@ def test_inf_as_null(self):
11811181
self.assertEqual(1.234, list(cur)[0][0])
11821182

11831183
def test_encoding_errors(self):
1184+
with s2.connect(
1185+
database=type(self).dbname,
1186+
encoding_errors='strict',
1187+
) as conn:
1188+
with conn.cursor() as cur:
1189+
cur.execute('SELECT * FROM badutf8')
1190+
list(cur)
1191+
11841192
with s2.connect(
11851193
database=type(self).dbname,
11861194
encoding_errors='backslashreplace',

0 commit comments

Comments
 (0)