https://github.com/python/cpython/commit/02c1dfff073a3dd6ce34a11b038defde291c2203
commit: 02c1dfff073a3dd6ce34a11b038defde291c2203
branch: main
author: Kirill Podoprigora <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-11T09:56:38+02:00
summary:
gh-120080: Mark test_round_with_none_arg_direct_call as cpython_only (#120328)
files:
M Lib/test/test_float.py
M Lib/test/test_int.py
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index 53695cefb8fded..756cf9bd7719c0 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -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),
diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py
index 77221dfb6d5aa2..2747d9219255ac 100644
--- a/Lib/test/test_int.py
+++ b/Lib/test/test_int.py
@@ -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),
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]