Skip to content

Commit

Permalink
Skip cplex tests in 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomas1234 committed Aug 4, 2015
1 parent d09fff0 commit 8bbd7ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions tests/test_flux_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import os
import unittest
import six
from sympy import Add
from cameo.flux_analysis import remove_infeasible_cycles

Expand Down Expand Up @@ -194,7 +195,7 @@ def setUp(self):
self.model = CORE_MODEL.copy()
self.model.solver = 'glpk'

@unittest.skipIf(TRAVIS, 'Skip for now')
@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestFindBlockedReactionsCPLEX(Wrapper.AbstractTestFindBlockedReactions):
def setUp(self):
self.model = CORE_MODEL.copy()
Expand All @@ -209,7 +210,7 @@ def setUp(self):
self.biomass_flux = 0.873921
self.model.reactions.Biomass_Ecoli_core_N_LPAREN_w_FSLASH_GAM_RPAREN__Nmet2.lower_bound = self.biomass_flux

@unittest.skipIf(TRAVIS, 'Skip for now')
@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestFluxVariabilityAnalysisCPLEX(Wrapper.AbstractTestFluxVariabilityAnalysis):
def setUp(self):
self.model = CORE_MODEL.copy()
Expand Down Expand Up @@ -243,7 +244,7 @@ def setUp(self):
self.model.solver = 'glpk'


@unittest.skipIf(TRAVIS, 'Skip for now')
@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestPhenotypicPhasePlaneCPLEX(Wrapper.AbstractTestPhenotypicPhasePlane):
def setUp(self):
self.model = CORE_MODEL.copy()
Expand All @@ -256,7 +257,7 @@ def setUp(self):
self.model.solver = 'glpk'


@unittest.skipIf(TRAVIS, 'Skip for now')
@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestSimulationMethodsCPLEX(Wrapper.AbstractTestSimulationMethods):
def setUp(self):
self.model = CORE_MODEL
Expand Down
2 changes: 1 addition & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TestModelLoadingGLPK(AbstractTestModelLoading, unittest.TestCase):
def setUp(self):
self.interface = optlang.glpk_interface


@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestModelLoadingCPLEX(AbstractTestModelLoading, unittest.TestCase):
def setUp(self):
self.interface = optlang.cplex_interface
Expand Down
2 changes: 2 additions & 0 deletions tests/test_solver_based_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def setUp(self):
self.solution = self.model.optimize()


@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestLazySolutionCPLEX(AbstractTestLazySolution):
def setUp(self):
super(TestLazySolutionCPLEX, self).setUp()
Expand Down Expand Up @@ -773,6 +774,7 @@ def test_cobrapy_attributes_not_in_dir(self):
self.assertNotIn('optimize', dir(self.model))


@unittest.skipIf(six.PY2, 'Build stalling in python 2.7.')
class TestSolverBasedModelCPLEX(WrappedAbstractTestSolverBasedModel.AbstractTestSolverBasedModel):
def setUp(self):
super(TestSolverBasedModelCPLEX, self).setUp()
Expand Down

0 comments on commit 8bbd7ce

Please sign in to comment.