Skip to content

ref: Remove old Python compat code - #6902

Merged
sentrivana merged 1 commit into
masterfrom
ivana/module-not-found
Jul 28, 2026
Merged

ref: Remove old Python compat code#6902
sentrivana merged 1 commit into
masterfrom
ivana/module-not-found

Conversation

@sentrivana

Copy link
Copy Markdown
Contributor

Description

We had pre-3.6 compat code still around.

See also https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError

Issues

Reminders

@sentrivana
sentrivana marked this pull request as ready for review July 28, 2026 11:34
@sentrivana
sentrivana requested a review from a team as a code owner July 28, 2026 11:34
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

98741 passed | ⏭️ 6806 skipped | Total: 105547 | Pass Rate: 93.55% | Execution Time: 362m 28s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +11
Passed Tests 📈 +14
Failed Tests 📉 -3
Skipped Tests

➖ Removed Tests (1)

View removed tests
  • test_circular_references_span_streaming
    • File: tests.tracing.test_misc

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2567 uncovered lines.
❌ Project coverage is 89.53%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.55%    89.53%    -0.02%
==========================================
  Files          193       193         —
  Lines        24520     24516        -4
  Branches      8676      8676         —
==========================================
+ Hits         21958     21949        -9
- Misses        2562      2567        +5
- Partials      1402      1402         —

Generated by Codecov Action

@sentrivana
sentrivana merged commit 4553543 into master Jul 28, 2026
145 checks passed
@sentrivana
sentrivana deleted the ivana/module-not-found branch July 28, 2026 11:48
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
### Description
We had pre-3.6 compat code still around.

See also
https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError

#### Issues
<!--
* resolves: getsentry#1234
* resolves: LIN-1234
-->

#### Reminders
- Please add tests to validate your changes, and lint your code using
`uv run ruff`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants