summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_frame.py3
-rw-r--r--Lib/test/test_gc.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_frame.py b/Lib/test/test_frame.py
index baed03d..f88206d 100644
--- a/Lib/test/test_frame.py
+++ b/Lib/test/test_frame.py
@@ -13,7 +13,7 @@ except ImportError:
_testcapi = None
from test import support
-from test.support import threading_helper
+from test.support import threading_helper, Py_GIL_DISABLED
from test.support.script_helper import assert_python_ok
@@ -294,6 +294,7 @@ class TestIncompleteFrameAreInvisible(unittest.TestCase):
assert_python_ok("-c", code)
@support.cpython_only
+ @unittest.skipIf(Py_GIL_DISABLED, "test requires precise GC scheduling")
def test_sneaky_frame_object(self):
def trace(frame, event, arg):
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index b01f344..dd09643 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -363,6 +363,7 @@ class GCTests(unittest.TestCase):
# To minimize variations, though, we first store the get_count() results
# and check them at the end.
@refcount_test
+ @unittest.skipIf(Py_GIL_DISABLED, 'needs precise allocation counts')
def test_get_count(self):
gc.collect()
a, b, c = gc.get_count()