From 3f2f4fefca388bc62fc2a7d07cb6ef24197c84bd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 13 Mar 2020 13:07:31 +0100 Subject: bpo-39947: Move get_recursion_depth() to _testinternalcapi (GH-18974) Move get_recursion_depth() function from _testcapi to _testinternalcapi to avoid accessing PyThreadState attributes directly in _testcapi. --- Lib/test/test_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_exceptions.py') diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 2d3a13a8f9..d6739f1866 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -994,7 +994,7 @@ class ExceptionTests(unittest.TestCase): # finalization of these locals. code = """if 1: import sys - from _testcapi import get_recursion_depth + from _testinternalcapi import get_recursion_depth class MyException(Exception): pass -- cgit v1.2.1