File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ def test_julia_hook(tmp_path):
3333
3434
3535def test_julia_hook_with_startup (tmp_path ):
36- # We will temporarily use a new Julia depot so we can freely write a
37- # startup.jl file
38- existing_depot = os .getenv ('JULIA_DEPOT_PATH' )
3936 # Set a new environment dir so we can test the install process
4037 existing_environment_dir = julia .ENVIRONMENT_DIR
4138 julia .ENVIRONMENT_DIR = 'juliaenv-test-startup'
4239 try :
4340 with tempfile .TemporaryDirectory () as depot_tempdir :
41+ # We will temporarily use a new Julia depot so we can
42+ # freely write a startup.jl file
4443 os .environ ['JULIA_DEPOT_PATH' ] = depot_tempdir
4544 depot_path = Path (depot_tempdir )
4645 depot_path .joinpath ('config' ).mkdir (exist_ok = True )
@@ -53,11 +52,7 @@ def test_julia_hook_with_startup(tmp_path):
5352 finally :
5453 # restore environment dir
5554 julia .ENVIRONMENT_DIR = existing_environment_dir
56- # restore old depot
57- if existing_depot is None :
58- del os .environ ['JULIA_DEPOT_PATH' ]
59- else :
60- os .environ ['JULIA_DEPOT_PATH' ] = existing_depot
55+ del os .environ ['JULIA_DEPOT_PATH' ]
6156
6257
6358def test_julia_hook_manifest (tmp_path ):
You can’t perform that action at this time.
0 commit comments