Skip to content

Commit

Permalink
Skipping two more tests when scipy not available--this really should …
Browse files Browse the repository at this point in the history
…make the pypy tests pass
  • Loading branch information
emma58 committed Aug 15, 2024
1 parent 86d4fff commit 5bda911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyomo/contrib/piecewise/tests/test_nonlinear_to_pwl.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def test_uniform_sampling_discrete_vars(self):
self.assertIn((x, y, z), points)

@unittest.skipUnless(numpy_available, "Numpy is not available")
@unittest.skipUnless(scipy_available, "Scipy is not available")
def test_uniform_sampling_discrete_vars(self):
m = ConcreteModel()
m.x = Var(['rocky', 'bullwinkle'], domain=Binary)
Expand Down Expand Up @@ -374,6 +375,7 @@ def test_uniform_sampling_discrete_vars(self):
self.assertIn((x, y, z), points)

@unittest.skipUnless(numpy_available, "Numpy is not available")
@unittest.skipUnless(scipy_available, "Scipy is not available")
def test_random_sampling_discrete_vars(self):
m = ConcreteModel()
m.x = Var(['rocky', 'bullwinkle'], domain=Binary)
Expand Down

0 comments on commit 5bda911

Please sign in to comment.