mirror of
https://github.com/python/cpython.git
synced 2025-11-02 14:41:33 +00:00
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.
This commit is contained in:
parent
224481a8c9
commit
3f2f4fefca
4 changed files with 19 additions and 16 deletions
|
|
@ -994,7 +994,7 @@ def test_recursion_normalizing_exception(self):
|
|||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue