diff --git a/core/modules/system/src/Form/ModulesUninstallForm.php b/core/modules/system/src/Form/ModulesUninstallForm.php
index 2cff995d3a..8dae5a47ff 100644
--- a/core/modules/system/src/Form/ModulesUninstallForm.php
+++ b/core/modules/system/src/Form/ModulesUninstallForm.php
@@ -136,15 +136,15 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         '#title_display' => 'invisible',
       ];
 
-      // If a validator returns reasons not to uninstall a module,
-      // list the reasons and disable the check box.
+      // If a validator returns reasons not to uninstall a module, list the
+      // reasons and disable the check box.
       if (isset($validation_reasons[$module_key])) {
         $form['modules'][$module->getName()]['#validation_reasons'] = $validation_reasons[$module_key];
         $form['uninstall'][$module->getName()]['#disabled'] = TRUE;
       }
       // All modules which depend on this one must be uninstalled first, before
-      // we can allow this module to be uninstalled. (Installation profiles are
-      // excluded from this list.)
+      // we can allow this module to be uninstalled. Installation profiles are
+      // excluded from this list.
       foreach (array_keys($module->required_by) as $dependent) {
         if (!in_array($dependent, array_keys($profiles)) && drupal_get_installed_schema_version($dependent) != SCHEMA_UNINSTALLED) {
           $name = isset($modules[$dependent]->info['name']) ? $modules[$dependent]->info['name'] : $dependent;
diff --git a/core/profiles/testing_subsubprofile/testing_subsubprofile.info.yml b/core/profiles/testing_subsubprofile/testing_subsubprofile.info.yml
index 74c0b8cf58..14e60b8021 100644
--- a/core/profiles/testing_subsubprofile/testing_subsubprofile.info.yml
+++ b/core/profiles/testing_subsubprofile/testing_subsubprofile.info.yml
@@ -9,6 +9,7 @@ base profile:
   name: testing_inherited
   excluded_dependencies:
     - config
+    - block
 
 dependencies:
   - page_cache
diff --git a/core/profiles/testing_subsubprofile/tests/src/Functional/DeepInheritedProfileTest.php b/core/profiles/testing_subsubprofile/tests/src/Functional/DeepInheritedProfileTest.php
index 6933de6214..65f862a2c2 100644
--- a/core/profiles/testing_subsubprofile/tests/src/Functional/DeepInheritedProfileTest.php
+++ b/core/profiles/testing_subsubprofile/tests/src/Functional/DeepInheritedProfileTest.php
@@ -23,12 +23,13 @@ public function testDeepInheritedProfile() {
     // Check that stable is the default theme enabled in parent profile.
     $this->assertEquals('stable', $this->config('system.theme')->get('default'));
 
-    // page_cache was enabled in main profile, disabled in parent and enabled
-    // in this profile.
+    // "page_cache" module was enabled in main profile, disabled in parent and
+    // enabled in this profile.
     $this->assertTrue(\Drupal::moduleHandler()->moduleExists('page_cache'));
-    // block was enabled in parent profile.
-    $this->assertTrue(\Drupal::moduleHandler()->moduleExists('block'));
-    // config was enabled in parent profile and disabled in this.
+    // "block" module was enabled in parent with default config yml file and
+    // disabled in this profile.
+    $this->assertFalse(\Drupal::moduleHandler()->moduleExists('block'));
+    // "config" module was enabled in parent and disabled in this profile.
     $this->assertFalse(\Drupal::moduleHandler()->moduleExists('config'));
   }
 
