File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ def configure(**options):
2323 Configure the Bugsnag notifier application-wide settings.
2424 """
2525 # Synchronize legacy references to point at the live configuration
26- global configuration , default_client , logger
26+ # only `logger` is rebound in this scope
27+ global logger
2728
2829 # Delegate to the module-local configuration instance so we update the
2930 # single source of truth without resolving package submodules that may
Original file line number Diff line number Diff line change 33
44
55def test_legacy_configuration_sync ():
6- """After calling `bugsnag.configure(...)`, package and legacy configurations
7- should point to the same live objects (no import-time snapshot).
6+ """After calling `bugsnag.configure(...)`, the package and legacy
7+ configuration objects should point to the same live objects.
8+ This prevents an import-time snapshot from becoming stale.
89 """
910 bugsnag .configure (api_key = "test-api-key" )
1011
Original file line number Diff line number Diff line change 4545 asgi: starlette
4646 asgi: starlette<0.28
4747 asgi: requests
48- asgi: httpx
4948 asgi: httpx<0.28
5049 bottle: webtest
5150 bottle: bottle
You can’t perform that action at this time.
0 commit comments