diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py index ba8c8939dc6148..001e8383be648b 100644 --- a/Lib/sqlite3/test/dbapi.py +++ b/Lib/sqlite3/test/dbapi.py @@ -85,7 +85,7 @@ def CheckNotSupportedError(self): def CheckErrorCodeOnException(self): with self.assertRaises(sqlite.Error) as cm: - db = sqlite.connect('/no/such/file/exists') + db = sqlite.connect('/no/such/file/exists') e = cm.exception self.assertEqual(e.sqlite_errorcode, sqlite.SQLITE_CANTOPEN) self.assertEqual(e.sqlite_errorname, "SQLITE_CANTOPEN")