Skip to content

Commit ce7eae3

Browse files
committed
try to make coverage happy...
1 parent 9cc9d9d commit ce7eae3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/languages/julia_test.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ def test_julia_hook(tmp_path):
3333

3434

3535
def 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

6358
def test_julia_hook_manifest(tmp_path):

0 commit comments

Comments
 (0)