Skip to content

Replace freezegun dependency with a small custom context manager - #1520

Merged
akx merged 1 commit into
masterfrom
our-own-freezegun
Nov 29, 2026
Merged

akx merged 1 commit into
masterfrom
our-own-freezegun

Conversation

@akx

@akx akx commented Nov 29, 2026

Copy link
Copy Markdown
Member

Closes #1509.

64 lines of code instead of an external package seems like a fair deal :)

@akx akx added this to the Babel 2.20 milestone Nov 29, 2026
@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.43%. Comparing base (01a8afa) to head (b8d2ea2).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1520   +/-   ##
=======================================
  Coverage   94.43%   94.43%           
=======================================
  Files          27       27           
  Lines        5051     5051           
=======================================
  Hits         4770     4770           
  Misses        281      281           
Flag Coverage Δ
macos-26-3.10 93.52% <ø> (ø)
macos-26-3.11 93.46% <ø> (ø)
macos-26-3.12 93.72% <ø> (ø)
macos-26-3.13 93.72% <ø> (ø)
macos-26-3.14 93.70% <ø> (ø)
macos-26-3.15 93.70% <ø> (ø)
macos-26-3.9 93.46% <ø> (ø)
macos-26-pypy3.11 93.42% <ø> (ø)
macos-26-pypy3.12 93.68% <ø> (ø)
ubuntu-24.04-3.10 93.54% <ø> (ø)
ubuntu-24.04-3.11 93.48% <ø> (ø)
ubuntu-24.04-3.12 93.74% <ø> (ø)
ubuntu-24.04-3.13 93.74% <ø> (ø)
ubuntu-24.04-3.14 93.72% <ø> (ø)
ubuntu-24.04-3.15 93.72% <ø> (ø)
ubuntu-24.04-3.9 93.48% <ø> (ø)
ubuntu-24.04-pypy3.11 93.44% <ø> (ø)
ubuntu-24.04-pypy3.12 93.70% <ø> (ø)
windows-2025-3.10 93.61% <ø> (ø)
windows-2025-3.11 93.55% <ø> (ø)
windows-2025-3.12 93.81% <ø> (ø)
windows-2025-3.13 93.81% <ø> (ø)
windows-2025-3.14 93.79% <ø> (ø)
windows-2025-3.15 93.79% <ø> (ø)
windows-2025-3.9 93.55% <ø> (ø)
windows-2025-pypy3.11 93.55% <ø> (ø)
windows-2025-pypy3.12 93.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed

codspeed Bot commented Nov 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 88 untouched benchmarks


Comparing our-own-freezegun (b8d2ea2) with master (01a8afa)

Open in CodSpeed

@akx
akx marked this pull request as ready for review November 29, 2026 12:53
@akx
akx merged commit 42fd84e into master Nov 29, 2026
41 checks passed
@akx
akx deleted the our-own-freezegun branch November 29, 2026 12:56
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.

1 participant