]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120080: Mark test_round_with_none_arg_direct_call as cpython_only (#120328)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Tue, 11 Jun 2024 07:56:38 +0000 (10:56 +0300)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2024 07:56:38 +0000 (09:56 +0200)
Lib/test/test_float.py
Lib/test/test_int.py

index 53695cefb8fded368969e8a607a5df70dd6a4d95..756cf9bd7719c0122792e79a005f2f4cff8ed009 100644 (file)
@@ -949,6 +949,7 @@ class RoundTestCase(unittest.TestCase):
             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),
index 77221dfb6d5aa2fede27635e47a4cba371dba186..2747d9219255ac06d257d1ed47f2bbd81752d798 100644 (file)
@@ -517,6 +517,7 @@ class IntTestCases(unittest.TestCase):
         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),