MilesCranmer commited on
Commit
3fba294
1 Parent(s): 2fe6870

Skip param groupings test if doesnt exist

Browse files
Files changed (1) hide show
  1. pysr/test/test.py +3 -0
pysr/test/test.py CHANGED
@@ -770,6 +770,9 @@ class TestMiscellaneous(unittest.TestCase):
770
  def test_param_groupings(self):
771
  """Test that param_groupings are complete"""
772
  param_groupings_file = Path(__file__).parent.parent / "param_groupings.yml"
 
 
 
773
  # Read the file, discarding lines ending in ":",
774
  # and removing leading "\s*-\s*":
775
  params = []
 
770
  def test_param_groupings(self):
771
  """Test that param_groupings are complete"""
772
  param_groupings_file = Path(__file__).parent.parent / "param_groupings.yml"
773
+ if not param_groupings_file.exists():
774
+ return
775
+
776
  # Read the file, discarding lines ending in ":",
777
  # and removing leading "\s*-\s*":
778
  params = []