[pypy-commit] pypy py3.6: Correctly port pypy modifications to sqlite tests

amauryfa pypy.commits at gmail.com
Mon Dec 18 03:37:49 EST 2017


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.6
Changeset: r93456:f83d3719aebd
Date: 2017-12-14 22:48 +0100
http://bitbucket.org/pypy/pypy/changeset/f83d3719aebd/

Log:	Correctly port pypy modifications to sqlite tests

diff --git a/lib-python/3/sqlite3/test/userfunctions.py b/lib-python/3/sqlite3/test/userfunctions.py
--- a/lib-python/3/sqlite3/test/userfunctions.py
+++ b/lib-python/3/sqlite3/test/userfunctions.py
@@ -314,7 +314,7 @@
         # XXX it's better to raise OperationalError in order to stop
         # the query earlier.
         cur = self.con.cursor()
-        with self.assertRaises(AttributeError) as cm:
+        with self.assertRaises(sqlite.OperationalError) as cm:
             cur.execute("select nostep(t) from test")
         self.assertEqual(str(cm.exception), "user-defined aggregate's 'step' method raised error")
 


More information about the pypy-commit mailing list