diff --git a/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php b/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
index 6edcef8..73b8cdf 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
@@ -233,6 +233,11 @@ public function testConnectionOpen() {
     $reflection = new \ReflectionObject($connection);
     $connection_property = $reflection->getProperty('connection');
     $connection_property->setAccessible(TRUE);
+    // In case a database driver is implementing a non-PDO connection, skip this test
+    // the driver should provide an alternative test.
+    if (get_class($connection_property->getValue($connection)) != 'PDO') {
+      $this->markTestSkipped('The database driver does not implement a PDO connection. The driver should provide an alternative test implementation.');
+    }
     $error_mode = $connection_property->getValue($connection)
       ->getAttribute(\PDO::ATTR_ERRMODE);
     $this->assertEqual($error_mode, \PDO::ERRMODE_SILENT, 'Ensure PDO connection options can be overridden.');
