Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into eph/jl-version
  • Loading branch information
ericphanson authored Aug 18, 2025
commit 623af3b5f525672e78eeac0fa194a7fd35df9916
10 changes: 9 additions & 1 deletion tests/languages/julia_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def test_julia_hook(tmp_path):
expected = (0, b'Hello, world!\n')
assert run_language(tmp_path, julia, 'src/main.jl') == expected


def test_julia_hook_version(tmp_path):
code = """
using Example
Expand All @@ -46,6 +45,15 @@ def test_julia_hook_version(tmp_path):
version='1.10.10',
) == expected

def test_julia_hook_with_startup(tmp_path):
depot_path = tmp_path.joinpath('depot')
depot_path.joinpath('config').mkdir(parents=True)
startup = depot_path.joinpath('config', 'startup.jl')
startup.write_text('error("Startup file used!")\n')

depo_path_var = f'{depot_path}{os.pathsep}'
with mock.patch.dict(os.environ, {'JULIA_DEPOT_PATH': depo_path_var}):
test_julia_hook(tmp_path)

def test_julia_hook_manifest(tmp_path):
code = """
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.