Skip to content

Commit 252be2c

Browse files
committed
fix settings tests
1 parent a3c24be commit 252be2c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/internal/test_settings.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313

1414
@pytest.fixture
1515
def config():
16-
yield Config()
16+
import ddtrace
17+
18+
original_config = ddtrace.config
19+
ddtrace.config = Config()
20+
yield ddtrace.config
21+
# Reset the config to its original state
22+
ddtrace.config = original_config
1723

1824

1925
def _base_rc_config(cfg):

0 commit comments

Comments
 (0)