`_utcfromtimestamp` is undefined in `datetimetester`
オープン
@sobolevn がすでに取り組んでいます。
2024年6月8日 から。
tests
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
This code cannot run correctly:
Because _utcfromtimestamp is not defined anywhere.
Introduced in https://github.com/python/cpython/commit/38dc3f28dde92b4fa6284a57f4e554991a3d9276 by @pganssle
I think that this is a typo, I will send a PR.
This was introduced when datetime.utcfromtimestamp was deprecated, I propose to use a direct alternative: datetime.fromtimestamp(t, datetime.UTC)
This problem is not detected by tests, because this looks like a in-test helper for module maintainers. It is not used as of right now.
Linked PRs
- gh-120267
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。