8000 gh-120080: Accept ``None`` as a valid argument for direct call of the ``int.__round__`` by Eclips4 · Pull Request #120088 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120080: Accept None as a valid argument for direct call of the int.__round__ #120088

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 11 commits into from
Jun 7, 2024
Prev Previous commit
Update Lib/test/test_int.py
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
Eclips4 and sobolevn authored Jun 5, 2024
commit bd802482a022768bc8a75fd8aea135b6851e1dad
1 change: 1 addition & 0 deletions Lib/test/test_int.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def test_round_with_none_arg_direct_call(self):
round(1),
round(1, None)]:
self.assertEqual(val, 1)
self.assertIs(type(val), int)

class IntStrDigitLimitsTests(unittest.TestCase):

Expand Down
0