Skip to content

Commit 2af12a3

Browse files
committed
CI Test supporting changes
1 parent 1f4f3bd commit 2af12a3

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

bugsnag/legacy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tests/test_legacy_configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44

55
def 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

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ deps=
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

0 commit comments

Comments
 (0)