mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] gh-134578: Mark more slow tests (GH-134579) (GH-134590)
(cherry picked from commit 77eade39f9)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
81f099375e
commit
80d70defc2
5 changed files with 6 additions and 0 deletions
|
|
@ -3292,6 +3292,7 @@ def check_output(self, source, expect, *flags):
|
|||
expect = self.text_normalize(expect)
|
||||
self.assertEqual(res, expect)
|
||||
|
||||
@support.requires_resource('cpu')
|
||||
def test_invocation(self):
|
||||
# test various combinations of parameters
|
||||
base_flags = (
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ def test_decref_freed_object(self):
|
|||
"""
|
||||
self.check_negative_refcount(code)
|
||||
|
||||
@support.requires_resource('cpu')
|
||||
def test_decref_delayed(self):
|
||||
# gh-130519: Test that _PyObject_XDecRefDelayed() and QSBR code path
|
||||
# handles destructors that are possibly re-entrant or trigger a GC.
|
||||
|
|
|
|||
|
|
@ -542,6 +542,8 @@ def test_odd_sizes(self):
|
|||
self.assertEqual(Dot(1)._replace(d=999), (999,))
|
||||
self.assertEqual(Dot(1)._fields, ('d',))
|
||||
|
||||
@support.requires_resource('cpu')
|
||||
def test_large_size(self):
|
||||
n = support.exceeds_recursion_limit()
|
||||
names = list(set(''.join([choice(string.ascii_letters)
|
||||
for j in range(10)]) for i in range(n)))
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ def test_highly_nested_objects_decoding(self):
|
|||
|
||||
@support.skip_wasi_stack_overflow()
|
||||
@support.skip_emscripten_stack_overflow()
|
||||
@support.requires_resource('cpu')
|
||||
def test_highly_nested_objects_encoding(self):
|
||||
# See #12051
|
||||
l, d = [], {}
|
||||
|
|
|
|||
|
|
@ -2346,6 +2346,7 @@ def test_mixed_int_and_float(self):
|
|||
|
||||
class TestKDE(unittest.TestCase):
|
||||
|
||||
@support.requires_resource('cpu')
|
||||
def test_kde(self):
|
||||
kde = statistics.kde
|
||||
StatisticsError = statistics.StatisticsError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue