Skip to content

Commit 729ca2c

Browse files
Disable tests which check that stats updated
1 parent 6cd20eb commit 729ca2c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_get_gc_stats.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def get_last_item(gc_stats: tuple[dict[str, str|int|float]],
4141
return item
4242

4343

44-
@requires_gil_enabled()
4544
@requires_remote_subprocess_debugging()
4645
class TestGetGCStats(unittest.TestCase):
4746

@@ -163,18 +162,21 @@ def test_get_gc_stats_fields(self):
163162
self.assertIsInstance(item, dict)
164163
self.assertEqual(sorted(item.keys()), keys)
165164

165+
@requires_gil_enabled()
166166
def test_get_gc_stats_for_main_interpreter(self):
167167
script = textwrap.dedent(self._script.format(False))
168168
before_stats, after_stats = self._collect_gc_stats(script, False)
169169

170170
self._check_interpreter_gc_stats(before_stats,after_stats)
171171

172+
@requires_gil_enabled()
172173
def test_get_gc_stats_for_main_interpreter_if_subinterpreter_exists(self):
173174
script = textwrap.dedent(self._script.format(True))
174175
before_stats, after_stats = self._collect_gc_stats(script, False)
175176

176177
self._check_interpreter_gc_stats(before_stats, after_stats)
177178

179+
@requires_gil_enabled()
178180
def test_get_gc_stats_for_all_interpreters(self):
179181
script = textwrap.dedent(self._script.format(True))
180182
before_stats, after_stats = self._collect_gc_stats(script, True)

0 commit comments

Comments
 (0)