Index: Lib/sqlite3/test/dbapi.py =================================================================== --- Lib/sqlite3/test/dbapi.py (revision 83717) +++ Lib/sqlite3/test/dbapi.py (working copy) @@ -43,8 +43,8 @@ sqlite.paramstyle) def CheckWarning(self): - self.assert_(issubclass(sqlite.Warning, Exception), - "Warning is not a subclass of Exception") + self.assert_(issubclass(sqlite.Warning, Warning), + "Warning is not a subclass of built in Warning") def CheckError(self): self.assertTrue(issubclass(sqlite.Error, Exception), Index: Modules/_sqlite/module.c =================================================================== --- Modules/_sqlite/module.c (revision 83717) +++ Modules/_sqlite/module.c (working copy) @@ -357,7 +357,7 @@ } PyDict_SetItemString(dict, "Error", pysqlite_Error); - if (!(pysqlite_Warning = PyErr_NewException(MODULE_NAME ".Warning", PyExc_Exception, NULL))) { + if (!(pysqlite_Warning = PyErr_NewException(MODULE_NAME ".Warning", PyExc_Warning, NULL))) { goto error; } PyDict_SetItemString(dict, "Warning", pysqlite_Warning);