Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ddtrace/contrib/internal/pytest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
expected failures.

"""

import os
from typing import Dict # noqa:F401

Expand Down Expand Up @@ -119,6 +120,9 @@ def pytest_addoption(parser):


def pytest_configure(config):
# Prevent ddtrace.auto from triggering module cloning
os.environ["DD_UNLOAD_MODULES_FROM_SITECUSTOMIZE"] = "0"

config.addinivalue_line("markers", "dd_tags(**kwargs): add tags to current span")
if is_enabled(config):
_disable_telemetry_dependency_collection()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
CI Visibility: prevent ``KeyError`` from pytest runs when ``gevent`` is
detected within the environment.
Loading