diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php
index ae304e0..9743d0d 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php
@@ -78,14 +78,16 @@ public function providerTestProcess() {
     $container->setAlias('service', new Alias('mariadb.service'));
     $data[] = array($prefix . 'MariaDb', $container);
 
-    // Check the database driver is the default.
-    $container = $this->getSqliteContainer($service);
-    $data[] = array($prefix . 'Sqlite', $container);
-
-    // Test the opt out.
-    $container = $this->getSqliteContainer($service);
-    $container->setParameter('default_backend', '');
-    $data[] = array($prefix . 'Default', $container);
+    if (!extension_loaded('pdo_sqlite')) {
+      // Check the database driver is the default.
+      $container = $this->getSqliteContainer($service);
+      $data[] = array($prefix . 'Sqlite', $container);
+
+      // Test the opt out.
+      $container = $this->getSqliteContainer($service);
+      $container->setParameter('default_backend', '');
+      $data[] = array($prefix . 'Default', $container);
+    }
 
     return $data;
   }
