File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 34
34
from test .support import import_helper
35
35
from test .support import os_helper
36
36
from test .support import socket_helper
37
- from test .support import set_recursion_limit
37
+ from test .support import infinite_recursion
38
38
from test .support import warnings_helper
39
39
from platform import win32_is_iot
40
40
@@ -1496,7 +1496,7 @@ def test_walk_many_open_files(self):
1496
1496
def test_walk_above_recursion_limit (self ):
1497
1497
depth = 50
1498
1498
os .makedirs (os .path .join (self .walk_path , * (['d' ] * depth )))
1499
- with set_recursion_limit (depth - 5 ):
1499
+ with infinite_recursion (depth - 5 ):
1500
1500
all = list (self .walk (self .walk_path ))
1501
1501
1502
1502
sub2_path = self .sub2_tree [0 ]
Original file line number Diff line number Diff line change 15
15
16
16
from test .support import import_helper
17
17
from test .support import is_emscripten , is_wasi
18
- from test .support import set_recursion_limit
18
+ from test .support import infinite_recursion
19
19
from test .support import os_helper
20
20
from test .support .os_helper import TESTFN , FakePath
21
21
from test .test_pathlib import test_pathlib_abc
@@ -1199,7 +1199,7 @@ def test_walk_above_recursion_limit(self):
1199
1199
path = base .joinpath (* (['d' ] * directory_depth ))
1200
1200
path .mkdir (parents = True )
1201
1201
1202
- with set_recursion_limit (recursion_limit ):
1202
+ with infinite_recursion (recursion_limit ):
1203
1203
list (base .walk ())
1204
1204
list (base .walk (top_down = False ))
1205
1205
@@ -1239,7 +1239,7 @@ def test_glob_above_recursion_limit(self):
1239
1239
path = base .joinpath (* (['d' ] * directory_depth ))
1240
1240
path .mkdir (parents = True )
1241
1241
1242
- with set_recursion_limit (recursion_limit ):
1242
+ with infinite_recursion (recursion_limit ):
1243
1243
list (base .glob ('**/' ))
1244
1244
1245
1245
def test_glob_pathlike (self ):
You can’t perform that action at this time.
0 commit comments