Skip to content

Commit

Permalink
pythongh-120080: Mark test_round_with_none_arg_direct_call as cpython…
Browse files Browse the repository at this point in the history
…_only (python#120328)
  • Loading branch information
Eclips4 authored and noahbkim committed Jul 11, 2024
1 parent fd8bdfa commit 2fad131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_float.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,7 @@ def test_None_ndigits(self):
self.assertEqual(x, 2)
self.assertIsInstance(x, int)

@support.cpython_only
def test_round_with_none_arg_direct_call(self):
for val in [(1.0).__round__(None),
round(1.0),
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def test_issue31619(self):
self.assertEqual(int('1_2_3_4_5_6_7_8_9', 16), 0x123456789)
self.assertEqual(int('1_2_3_4_5_6_7', 32), 1144132807)

@support.cpython_only
def test_round_with_none_arg_direct_call(self):
for val in [(1).__round__(None),
round(1),
Expand Down

0 comments on commit 2fad131

Please sign in to comment.