mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-134578: Mark more slow tests (GH-134579)
This commit is contained in:
parent
fc0c9c2412
commit
77eade39f9
5 changed files with 6 additions and 0 deletions
|
@ -3292,6 +3292,7 @@ class CommandLineTests(unittest.TestCase):
|
||||||
expect = self.text_normalize(expect)
|
expect = self.text_normalize(expect)
|
||||||
self.assertEqual(res, expect)
|
self.assertEqual(res, expect)
|
||||||
|
|
||||||
|
@support.requires_resource('cpu')
|
||||||
def test_invocation(self):
|
def test_invocation(self):
|
||||||
# test various combinations of parameters
|
# test various combinations of parameters
|
||||||
base_flags = (
|
base_flags = (
|
||||||
|
|
|
@ -221,6 +221,7 @@ class CAPITest(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
self.check_negative_refcount(code)
|
self.check_negative_refcount(code)
|
||||||
|
|
||||||
|
@support.requires_resource('cpu')
|
||||||
def test_decref_delayed(self):
|
def test_decref_delayed(self):
|
||||||
# gh-130519: Test that _PyObject_XDecRefDelayed() and QSBR code path
|
# gh-130519: Test that _PyObject_XDecRefDelayed() and QSBR code path
|
||||||
# handles destructors that are possibly re-entrant or trigger a GC.
|
# handles destructors that are possibly re-entrant or trigger a GC.
|
||||||
|
|
|
@ -542,6 +542,8 @@ class TestNamedTuple(unittest.TestCase):
|
||||||
self.assertEqual(Dot(1)._replace(d=999), (999,))
|
self.assertEqual(Dot(1)._replace(d=999), (999,))
|
||||||
self.assertEqual(Dot(1)._fields, ('d',))
|
self.assertEqual(Dot(1)._fields, ('d',))
|
||||||
|
|
||||||
|
@support.requires_resource('cpu')
|
||||||
|
def test_large_size(self):
|
||||||
n = support.exceeds_recursion_limit()
|
n = support.exceeds_recursion_limit()
|
||||||
names = list(set(''.join([choice(string.ascii_letters)
|
names = list(set(''.join([choice(string.ascii_letters)
|
||||||
for j in range(10)]) for i in range(n)))
|
for j in range(10)]) for i in range(n)))
|
||||||
|
|
|
@ -86,6 +86,7 @@ class TestRecursion:
|
||||||
|
|
||||||
@support.skip_wasi_stack_overflow()
|
@support.skip_wasi_stack_overflow()
|
||||||
@support.skip_emscripten_stack_overflow()
|
@support.skip_emscripten_stack_overflow()
|
||||||
|
@support.requires_resource('cpu')
|
||||||
def test_highly_nested_objects_encoding(self):
|
def test_highly_nested_objects_encoding(self):
|
||||||
# See #12051
|
# See #12051
|
||||||
l, d = [], {}
|
l, d = [], {}
|
||||||
|
|
|
@ -2346,6 +2346,7 @@ class TestGeometricMean(unittest.TestCase):
|
||||||
|
|
||||||
class TestKDE(unittest.TestCase):
|
class TestKDE(unittest.TestCase):
|
||||||
|
|
||||||
|
@support.requires_resource('cpu')
|
||||||
def test_kde(self):
|
def test_kde(self):
|
||||||
kde = statistics.kde
|
kde = statistics.kde
|
||||||
StatisticsError = statistics.StatisticsError
|
StatisticsError = statistics.StatisticsError
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue