summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gc.py
diff options
context:
space:
mode:
authorMalcolm Smith <smith@chaquo.com>2024-04-05 20:57:36 (GMT)
committerGitHub <noreply@github.com>2024-04-05 20:57:36 (GMT)
commit1d3225ae056245da75e4a443ccafcc8f4f982cf2 (patch)
tree1774ec8b5584ceb736ef0a7d77abd4f7005399ff /Lib/test/test_gc.py
parent6150bb2412eb5ca3b330ccb9f0636949c7526a7f (diff)
downloadcpython-1d3225ae056245da75e4a443ccafcc8f4f982cf2.zip
cpython-1d3225ae056245da75e4a443ccafcc8f4f982cf2.tar.gz
cpython-1d3225ae056245da75e4a443ccafcc8f4f982cf2.tar.bz2
gh-116622: Test updates for Android (#117299)
- re-enable test_fcntl_64_bit on Linux aarch64, but disable it on all Android ABIs - use support.setswitchinterval in all relevant tests - skip test_fma_zero_result on Android x86_64 - accept EACCES when calling os.get_terminal_size on Android
Diffstat (limited to 'Lib/test/test_gc.py')
-rw-r--r--Lib/test/test_gc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index 8a748cb..71c7fb0 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -1,5 +1,6 @@
import unittest
import unittest.mock
+from test import support
from test.support import (verbose, refcount_test,
cpython_only, requires_subprocess,
requires_gil_enabled)
@@ -470,7 +471,7 @@ class GCTests(unittest.TestCase):
make_nested()
old_switchinterval = sys.getswitchinterval()
- sys.setswitchinterval(1e-5)
+ support.setswitchinterval(1e-5)
try:
exit = []
threads = []