File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2479,9 +2479,10 @@ def test_complex_symlinks_relative_dot_dot(self):
2479
2479
self ._check_complex_symlinks (os .path .join ('dirA' , '..' ))
2480
2480
2481
2481
class WalkTests (unittest .TestCase ):
2482
+ cls = pathlib .Path
2482
2483
2483
2484
def setUp (self ):
2484
- P = pathlib . Path
2485
+ P = self . cls
2485
2486
self .addCleanup (os_helper .rmtree , os_helper .TESTFN )
2486
2487
2487
2488
# Build:
@@ -2551,7 +2552,7 @@ def setUp(self):
2551
2552
del self .sub2_tree [1 ][:1 ]
2552
2553
2553
2554
def test_walk_topdown (self ):
2554
- P = pathlib . Path
2555
+ P = self . cls
2555
2556
all = list (self .walk_path .walk ())
2556
2557
2557
2558
self .assertEqual (len (all ), 4 )
@@ -2657,7 +2658,7 @@ def test_walk_bad_dir(self):
2657
2658
path1new .rename (path1 )
2658
2659
2659
2660
def test_walk_many_open_files (self ):
2660
- P = pathlib . Path
2661
+ P = self . cls
2661
2662
depth = 30
2662
2663
base = P (os_helper .TESTFN , 'deep' )
2663
2664
p = P (base , * (['d' ]* depth ))
You can’t perform that action at this time.
0 commit comments