8000 gh-120268: Prohibit passing ``None`` to ``_pydatetime.date.fromtimestamp`` by Eclips4 · Pull Request #120269 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120268: Prohibit passing None to _pydatetime.date.fromtimestamp #120269

New issue

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

Merged
merged 2 commits into from
Jun 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove accidentally added print
  • Loading branch information
Eclips4 committed Jun 8, 2024
commit 43827548f659fa760bf58f04edb521748e86ec7c
1 change: 0 additions & 1 deletion Lib/test/datetimetester.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,6 @@ def test_insane_fromtimestamp(self):

def test_fromtimestamp_with_none_arg(self):
# See gh-120268 for more details
print(self.theclass)
with self.assertRaises(TypeError):
self.theclass.fromtimestamp(None)

Expand Down
Loading
0