Browse Source

ref: un-silence warnings about django 3.x removals (#52271)

<!-- Describe your PR here. -->

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
anthony sottile 1 year ago
parent
commit
306fb92122
3 changed files with 0 additions and 11 deletions
  1. 0 3
      pyproject.toml
  2. 0 4
      src/sentry/runner/settings.py
  3. 0 4
      src/sentry/utils/pytest/sentry.py

+ 0 - 3
pyproject.toml

@@ -31,8 +31,6 @@ filterwarnings = [
     # Consider all warnings to be errors other than the ignored ones.
     "error",
 
-    "ignore::django.utils.deprecation.RemovedInDjango30Warning",
-
     # At writing, the Google Bigtable Emulator relies on deprecated behavior
     # internally, this can be removed once a version containing this fix is
     # released: https://github.com/googleapis/python-bigtable/pull/246
@@ -826,7 +824,6 @@ module = [
     "sentry.runner.commands.upgrade",
     "sentry.runner.importer",
     "sentry.runner.initializer",
-    "sentry.runner.settings",
     "sentry.scim.endpoints.members",
     "sentry.scim.endpoints.teams",
     "sentry.scim.endpoints.utils",

+ 0 - 4
src/sentry/runner/settings.py

@@ -92,10 +92,6 @@ def configure(ctx, py, yaml, skip_service_validation=False):
     # Make sure that our warnings are always displayed.
     warnings.filterwarnings("default", "", Warning, r"^sentry")
 
-    from django.utils.deprecation import RemovedInDjango30Warning
-
-    warnings.filterwarnings(action="ignore", category=RemovedInDjango30Warning)
-
     # Add in additional mimetypes that are useful for our static files
     # which aren't common in default system registries
     import mimetypes

+ 0 - 4
src/sentry/utils/pytest/sentry.py

@@ -28,10 +28,6 @@ TEST_REDIS_DB = 9
 def pytest_configure(config):
     import warnings
 
-    from django.utils.deprecation import RemovedInDjango30Warning  # type: ignore[attr-defined]
-
-    warnings.filterwarnings(action="ignore", category=RemovedInDjango30Warning)
-
     # This is just to filter out an obvious warning before the pytest session starts.
     warnings.filterwarnings(
         action="ignore",