Skip to content

Commit f7f9ef1

Browse files
Erlend Egeberg Aaslandvstinner
andauthored
Update Lib/sqlite3/test/userfunctions.py
Co-authored-by: Victor Stinner <[email protected]>
1 parent 40542ba commit f7f9ef1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/sqlite3/test/userfunctions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# pysqlite2/test/userfunctions.py: tests for user-defined functions and
33
# aggregates.
44
#
5-
# Copyright (C) 2005-2007 Gerhard Häring <[email protected]>
5+
# Copyright (C) 2005-2007 Gerhard Häring <[email protected]>
66
#
77
# This file is part of pysqlite.
88
#
@@ -284,7 +284,8 @@ def CheckFuncNonDeterministic(self):
284284
self.con.create_function("nondeterministic", 0, mock, deterministic=False)
285285
with self.assertRaises(sqlite.OperationalError) as cm:
286286
self.con.execute("create index t on test(t) where nondeterministic() is not null")
287-
self.assertEqual(str(cm.exception), "non-deterministic functions prohibited in partial index WHERE clauses")
287+
# non-deterministic functions prohibited in partial index WHERE clauses
288+
self.assertIn("non-deterministic functions prohibited", str(cm.exception))
288289

289290
@unittest.skipIf(sqlite.sqlite_version_info < (3, 8, 3), "Requires SQLite 3.8.3 or higher")
290291
def CheckFuncDeterministic(self):

0 commit comments

Comments
 (0)