File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11398,7 +11398,7 @@ fn sync_config_settings_package() -> Result<()> {
1139811398/// it, which breaks Docker volume mounts.
1139911399#[ test]
1140011400#[ cfg( unix) ]
11401- fn sync_read_only_venv_directory ( ) -> Result < ( ) > {
11401+ fn sync_does_not_remove_empty_virtual_environment_directory ( ) -> Result < ( ) > {
1140211402 use std:: os:: unix:: fs:: PermissionsExt ;
1140311403
1140411404 let context = TestContext :: new_with_versions ( & [ "3.12" ] ) ;
@@ -11423,14 +11423,18 @@ fn sync_read_only_venv_directory() -> Result<()> {
1142311423 // Ensure the parent is read-only, to prevent deletion of the virtual environment
1142411424 fs_err:: set_permissions ( & project_dir, std:: fs:: Permissions :: from_mode ( 0o555 ) ) ?;
1142511425
11426+ // Note we do _not_ fail to create the virtual environment — we fail later when writing to the
11427+ // project directory
1142611428 uv_snapshot ! ( context. filters( ) , context. sync( ) . current_dir( & project_dir) , @r"
1142711429 success: false
1142811430 exit_code: 2
1142911431 ----- stdout -----
1143011432
1143111433 ----- stderr -----
1143211434 Using CPython 3.12.[X] interpreter at: [PYTHON-3.12]
11433- error: failed to remove directory `[TEMP_DIR]/project/.venv`: Permission denied (os error 13)
11435+ Creating virtual environment at: .venv
11436+ Resolved 2 packages in [TIME]
11437+ error: failed to write to file `[TEMP_DIR]/project/uv.lock`: Permission denied (os error 13)
1143411438 " ) ;
1143511439
1143611440 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments