Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
919b5fc
1
Parent(s):
666d589
Fix tempdir name
Browse files- test/test_env.py +2 -2
test/test_env.py
CHANGED
@@ -12,10 +12,10 @@ class TestJuliaProject(unittest.TestCase):
|
|
12 |
# Create a temp depot to store julia packages (and our custom env)
|
13 |
Main = julia_helpers.init_julia()
|
14 |
Main.eval(
|
15 |
-
f'pushfirst!(DEPOT_PATH, "{julia_helpers._escape_filename(tmpdir)}")'
|
16 |
)
|
17 |
test_env_name = "@pysr_test_env"
|
18 |
-
julia_helpers.install(julia_project=test_env_name
|
19 |
Main = julia_helpers.init_julia(julia_project=test_env_name)
|
20 |
Main.eval("using SymbolicRegression")
|
21 |
Main.eval("using Pkg")
|
|
|
12 |
# Create a temp depot to store julia packages (and our custom env)
|
13 |
Main = julia_helpers.init_julia()
|
14 |
Main.eval(
|
15 |
+
f'pushfirst!(DEPOT_PATH, "{julia_helpers._escape_filename(tmpdir.name)}")'
|
16 |
)
|
17 |
test_env_name = "@pysr_test_env"
|
18 |
+
julia_helpers.install(julia_project=test_env_name)
|
19 |
Main = julia_helpers.init_julia(julia_project=test_env_name)
|
20 |
Main.eval("using SymbolicRegression")
|
21 |
Main.eval("using Pkg")
|