Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
b7d54b1
1
Parent(s):
52f940c
Skip notebook test on older Julia
Browse files
pysr/test/test_startup.py
CHANGED
@@ -9,6 +9,7 @@ from pathlib import Path
|
|
9 |
import numpy as np
|
10 |
|
11 |
from .. import PySRRegressor
|
|
|
12 |
from .params import DEFAULT_NITERATIONS, DEFAULT_POPULATIONS
|
13 |
|
14 |
|
@@ -128,6 +129,8 @@ class TestStartup(unittest.TestCase):
|
|
128 |
self.assertIn(warning_test["msg"], result.stderr.decode())
|
129 |
|
130 |
def test_notebook(self):
|
|
|
|
|
131 |
result = subprocess.run(
|
132 |
[
|
133 |
sys.executable,
|
|
|
9 |
import numpy as np
|
10 |
|
11 |
from .. import PySRRegressor
|
12 |
+
from ..julia_import import jl_version
|
13 |
from .params import DEFAULT_NITERATIONS, DEFAULT_POPULATIONS
|
14 |
|
15 |
|
|
|
129 |
self.assertIn(warning_test["msg"], result.stderr.decode())
|
130 |
|
131 |
def test_notebook(self):
|
132 |
+
if jl_version < (1, 9, 0):
|
133 |
+
self.skipTest("Julia version too old")
|
134 |
result = subprocess.run(
|
135 |
[
|
136 |
sys.executable,
|