@@ -904,9 +904,7 @@ def test_pruning_removes_empty_pk_directory(self, schema_prune):
904904 assert stats ["schema_paths_deleted" ] >= 1
905905
906906 # The orphaned file is gone.
907- assert not (store_root / dead_ref ).exists (), (
908- f"orphaned schema file must be deleted; still present at { dead_ref } "
909- )
907+ assert not (store_root / dead_ref ).exists (), f"orphaned schema file must be deleted; still present at { dead_ref } "
910908 # The pruning loop must have removed the now-empty pk-dir.
911909 dead_pk_dir = (store_root / dead_ref ).parent
912910 assert not dead_pk_dir .exists (), (
@@ -917,18 +915,12 @@ def test_pruning_removes_empty_pk_directory(self, schema_prune):
917915
918916 # The sibling pk-dir with a live file must be preserved.
919917 live_pk_dir = (store_root / live_ref ).parent
920- assert live_pk_dir .exists (), (
921- f"pk-directory holding a live file must not be pruned; missing { live_pk_dir } "
922- )
923- assert (store_root / live_ref ).exists (), (
924- f"live schema file must survive collect(); missing { live_ref } "
925- )
918+ assert live_pk_dir .exists (), f"pk-directory holding a live file must not be pruned; missing { live_pk_dir } "
919+ assert (store_root / live_ref ).exists (), f"live schema file must survive collect(); missing { live_ref } "
926920
927921 # The table directory (grandparent) still holds live content, so it
928922 # must be preserved — the pruning walk must stop at "not empty".
929- assert live_pk_dir .parent .exists (), (
930- "table directory must survive when it still holds a live pk-dir"
931- )
923+ assert live_pk_dir .parent .exists (), "table directory must survive when it still holds a live pk-dir"
932924
933925 def test_pruning_stops_at_store_root (self , schema_prune ):
934926 """After removing the last orphan under a schema, the pruning walk may
0 commit comments