Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_utcfromtimestamp
datetimetester
This code cannot run correctly:
cpython/Lib/test/datetimetester.py
Lines 6221 to 6227 in 55402d3
Because _utcfromtimestamp is not defined anywhere.
Introduced in 38dc3f2 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)
datetime.utcfromtimestamp
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.
datetimetested
The text was updated successfully, but these errors were encountered:
pythongh-120266: Fix undefined _utcfromtimestamp name in `datetimet…
397a5f3
…ested`
Bug report
This code cannot run correctly:
cpython/Lib/test/datetimetester.py
Lines 6221 to 6227 in 55402d3
Because
_utcfromtimestamp
is not defined anywhere.Introduced in 38dc3f2 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
_utcfromtimestamp
name indatetimetested
#120267The text was updated successfully, but these errors were encountered: