Your message dated Wed, 1 Oct 2025 22:30:12 +0200
with message-id <[email protected]>
and subject line Re: utils.py:201: DeprecationWarning:
datetime.datetime.utcnow()
has caused the Debian Bug report #1084945,
regarding utils.py:201: DeprecationWarning: datetime.datetime.utcnow()
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1084945: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1084945
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-pytest-benchmark
Version: 4.0.0-3
Severity: normal
Control: forwarded -1 https://github.com/ionelmc/pytest-benchmark/issues/240
pytest_benchmark emits a warning to stderr
/usr/lib/python3/dist-packages/pytest_benchmark/utils.py:201:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for
removal in a future version. Use timezone-aware objects to represent datetimes
in UTC: datetime.datetime.now(datetime.UTC).
return datetime.utcnow().strftime("%Y%m%d_%H%M%S")
Since the error goes to stderr, it causes other packages to fail
autopkgtest (debci), unless they reconfigure with "allow-stderr".
It's better to not need to set that.
The problem was reported and fixed upstream by MR#253
https://github.com/ionelmc/pytest-benchmark/pull/253
(and updated further in later commits)
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.11.2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-pytest-benchmark depends on:
ii python3 3.12.6-1
ii python3-cpuinfo 9.0.0+git20221119-2
ii python3-pytest 8.3.3-1
Versions of packages python3-pytest-benchmark recommends:
ii python3-elasticsearch 7.17.6-1
ii python3-freezegun 1.5.1-1.1
ii python3-pygal 3.0.0-1
python3-pytest-benchmark suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source-Version: 5.1.0-1
I forgot to close this bug when I updated pytest-benchmark to version
5.1.0.
--
⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯
signature.asc
Description: PGP signature
--- End Message ---