-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher Doris
committed
Oct 31, 2023
1 parent
8495784
commit 4018135
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
def test_import(): | ||
import juliacall | ||
|
||
def test_issue_394(): | ||
"https://github.com/JuliaPy/PythonCall.jl/issues/394" | ||
from juliacall import Main as jl | ||
x = 3 | ||
f = lambda x: x+1 | ||
y = 5 | ||
jl.x = f | ||
assert jl.x is x | ||
jl.f = f | ||
assert jl.f is f | ||
jl.y = y | ||
assert jl.y is y | ||
assert jl.x is x | ||
assert jl.f is f | ||
assert jl.y is y | ||
assert jl.seval("f(x)") == 4 |