          loader.load_disk()
          migrations = [name for app, name in loader.disk_migrations if app == 'migrations']
          self.assertEqual(migrations, ['0001_initial'])
  
  
  class PycLoaderTests(MigrationTestBase):
  
      def test_valid(self):
          """
          To support frozen environments, MigrationLoader loads .pyc migrations.
 
</s> remove             self.migrated_apps.add(app_config.label)
 </s> add  </s> remove                 # Empty directories are namespaces.
                # getattr() needed on PY36 and older (replace w/attribute access).
                if getattr(module, '__file__', None) is None:
                    self.unmigrated_apps.add(app_config.label)
                    continue
 </s> add  </s> remove * ...
 </s> add * Migrations are now loaded also from directories without ``__init__.py``
  files.
    @override_settings(
        MIGRATION_MODULES={'migrations': 'migrations.test_migrations_namespace_package'},
    )
    def test_loading_namespace_package(self):
        """Migration directories without an __init__.py file are loaded."""
        migration_loader = MigrationLoader(connection)
        self.assertEqual(
            migration_loader.graph.forwards_plan(('migrations', '0001_initial')),
            [('migrations', '0001_initial')],
        )

          loader.load_disk()
          migrations = [name for app, name in loader.disk_migrations if app == 'migrations']
          self.assertEqual(migrations, ['0001_initial'])
  
    @override_settings(
        MIGRATION_MODULES={'migrations': 'migrations.test_migrations_namespace_package'},
    )
    def test_loading_namespace_package(self):
        """Migration directories without an __init__.py file are loaded."""
        migration_loader = MigrationLoader(connection)
        self.assertEqual(
            migration_loader.graph.forwards_plan(('migrations', '0001_initial')),
            [('migrations', '0001_initial')],
        )

  
  class PycLoaderTests(MigrationTestBase):
  
      def test_valid(self):
          """
          To support frozen environments, MigrationLoader loads .pyc migrations.
keep keep keep add keep keep keep keep keep keep
 Fixed #30300 -- Allowed migrations to be loaded from directories without __init__.py file. 
tests/migrations/test_loader.py