  import unittest
  from unittest import skipUnless
  
  from django.contrib.gis.gdal import HAS_GDAL
  from django.db import connection, router
  from django.conf import settings
  from django.test import TestCase, skipUnlessDBFeature
  from django.utils._os import upath
  
  if HAS_GDAL:
 
</s> remove from django.test import TestCase, skipUnlessDBFeature
 </s> add from django.test import TestCase, override_settings, skipUnlessDBFeature </s> remove from django.test import override_settings
from django.db import connection, migrations, models, router
 </s> add from django.db import connection, migrations, models </s> remove from django.db import connections, models, router
from django.test import TestCase
from django.test.utils import captured_stdout, override_settings
 </s> add from django.db import connections, models
from django.test import TestCase, override_settings
from django.test.utils import captured_stdout </s> remove from django.db import connections, DEFAULT_DB_ALIAS, router
from django.test import TestCase
 </s> add from django.db import connections, DEFAULT_DB_ALIAS
from django.test import TestCase, override_settings </s> remove from django.db import connection, connections, router, transaction
 </s> add from django.db import connection, connections, transaction
from django.db import connection
  import unittest
  from unittest import skipUnless
  
  from django.contrib.gis.gdal import HAS_GDAL
from django.db import connection
  from django.conf import settings
  from django.test import TestCase, skipUnlessDBFeature
  from django.utils._os import upath
  
  if HAS_GDAL:
keep keep keep keep replace keep keep keep keep keep
 Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs #23933. 
django/contrib/gis/tests/layermap/tests.py