ionelmc / pytest-benchmark

py.test fixture for benchmarking code
BSD 2-Clause "Simplified" License
1.22k stars 115 forks source link

Fix `datetime.utcnow()` deprecated in Python 3.12 #253

Closed cclauss closed 7 months ago

cclauss commented 7 months ago

Fixes #240

https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow is deprecated in Python 3.12.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (728752d) 62.00% compared to head (cf954cf) 61.82%.

Files Patch % Lines
src/pytest_benchmark/utils.py 0.00% 2 Missing :warning:
src/pytest_benchmark/plugin.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #253 +/- ## ========================================== - Coverage 62.00% 61.82% -0.18% ========================================== Files 29 29 Lines 2858 2858 Branches 386 383 -3 ========================================== - Hits 1772 1767 -5 - Misses 998 1004 +6 + Partials 88 87 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.