diff --git a/doc/source/configuration/configuring.rst b/doc/source/configuration/configuring.rst index a891300599..ab4d53fa4e 100644 --- a/doc/source/configuration/configuring.rst +++ b/doc/source/configuration/configuring.rst @@ -1742,10 +1742,9 @@ One main configuration file option affects the image cache. be :ref:`migrated ` to central database on service restart during upgrade process. - The ``sqlite`` cache driver has no special dependencies, other - than the ``python-sqlite3`` library, which is installed on virtually - all operating systems with modern versions of Python. It stores - information about the cached files in a SQLite database. + The ``sqlite`` cache driver has no special dependencies, and uses + the built-in ``sqlite3`` module. It stores information about the cached + files in a SQLite database. **NOTE** In Caracal release ``sqlite`` cache driver has been deprecated and will diff --git a/glance/tests/unit/test_image_cache.py b/glance/tests/unit/test_image_cache.py index e63e6d946e..7fc914e841 100644 --- a/glance/tests/unit/test_image_cache.py +++ b/glance/tests/unit/test_image_cache.py @@ -619,26 +619,8 @@ class TestImageCacheSqlite(test_utils.BaseTestCase, """Tests image caching when SQLite is used in cache""" def setUp(self): - """ - Test to see if the pre-requisites for the image cache - are working (python-sqlite3 installed) - """ super(TestImageCacheSqlite, self).setUp() - if getattr(self, 'disable', False): - return - - if not getattr(self, 'inited', False): - try: - import sqlite3 # noqa - except ImportError: - self.inited = True - self.disabled = True - self.disabled_message = ("python-sqlite3 not installed.") - return - - self.inited = True - self.disabled = False self.cache_dir = self.useFixture(fixtures.TempDir()).path self.config(image_cache_dir=self.cache_dir, image_cache_driver='sqlite',