Skip to content

Commit 3814e53

Browse files
committed
use support.Py_GIL_DISABLED
1 parent b3665fd commit 3814e53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_array.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,8 +1683,7 @@ class FreeThreadingTest(unittest.TestCase):
16831683
# Non-deterministic, but at least one of these things will fail if
16841684
# array module is not free-thread safe.
16851685

1686-
@unittest.skipUnless(sysconfig.get_config_var('Py_GIL_DISABLED'),
1687-
'this test can only fail with GIL disabled')
1686+
@unittest.skipUnless(support.Py_GIL_DISABLED, 'this test can only possibly fail with GIL disabled')
16881687
@threading_helper.reap_threads
16891688
@threading_helper.requires_working_threading()
16901689
def test_free_threading(self):

0 commit comments

Comments
 (0)