File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ def test_blocks_system_directories(self):
3636
3737 for dangerous_dir in dangerous_dirs :
3838 if dangerous_dir .exists ():
39- assert not indexer ._is_safe_to_scan (
40- dangerous_dir
41- ), f" { dangerous_dir } should be blocked"
39+ assert not indexer ._is_safe_to_scan (dangerous_dir ), (
40+ f" { dangerous_dir } should be blocked"
41+ )
4242
4343 # /var root should be blocked (might resolve to /private/var)
4444 # Note: /var is often a symlink to /private/var on macOS
@@ -82,9 +82,9 @@ def test_blocks_shallow_home_subdirs(self):
8282
8383 # Direct child of home should be blocked
8484 shallow_dir = home / "test_project"
85- assert not indexer ._is_safe_to_scan (
86- shallow_dir
87- ), "Shallow home subdirectory should be blocked"
85+ assert not indexer ._is_safe_to_scan (shallow_dir ), (
86+ "Shallow home subdirectory should be blocked"
87+ )
8888
8989 def test_safe_rglob_respects_depth (self ):
9090 """Test that safe_rglob respects max depth."""
You can’t perform that action at this time.
0 commit comments