Skip to content

chore: Clean up stale Python 3.10 baseline TODOs#5292

Open
hectorhdzg wants to merge 2 commits into
open-telemetry:mainfrom
hectorhdzg:hectorhdzg/baselinetodo
Open

chore: Clean up stale Python 3.10 baseline TODOs#5292
hectorhdzg wants to merge 2 commits into
open-telemetry:mainfrom
hectorhdzg:hectorhdzg/baselinetodo

Conversation

@hectorhdzg

Copy link
Copy Markdown
Member

The minimum Python version was bumped to 3.10, but a few TODOs guarded by that
baseline were never addressed. This PR cleans them up:

  • opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py: Simplify
    traceback.format_exception() call to use the single-argument form available
    since Python 3.10.
  • opentelemetry-api/tests/metrics/test_meter.py: Replace @patch logger
    mock with assertNoLogs (available since Python 3.10).
  • opentelemetry-sdk/tests/metrics/test_metrics.py: Same assertNoLogs
    conversion.

@hectorhdzg hectorhdzg requested a review from a team as a code owner June 11, 2026 16:32
@hectorhdzg hectorhdzg added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant