Skip to content

Commit 97cbf88

Browse files
committed
Undo skip test
1 parent 2ebc8b2 commit 97cbf88

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_branch_incomplete.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
import pytest
2+
import os
23
from pyscipopt import Model, Branchrule, SCIP_PARAMSETTING
34

45

5-
@pytest.mark.skip(reason="fix later")
66
def test_incomplete_branchrule():
77
class IncompleteBranchrule(Branchrule):
88
pass
99

1010
branchrule = IncompleteBranchrule()
1111
model = Model()
12-
x = model.addVar(obj=-5, ub=100, vtype="INTEGER")
13-
y = model.addVar(obj=-6, ub=100, vtype="INTEGER")
14-
model.addCons(x + y <= 5)
15-
model.addCons(4*x + 7*y <= 28)
16-
model.includeBranchrule(branchrule, "", "", priority=99999999, maxdepth=-1, maxbounddist=1)
1712
model.setPresolve(SCIP_PARAMSETTING.OFF)
1813
model.setSeparating(SCIP_PARAMSETTING.OFF)
1914
model.setHeuristics(SCIP_PARAMSETTING.OFF)
20-
model.disablePropagation()
15+
model.includeBranchrule(branchrule, "", "", priority=10000000, maxdepth=-1, maxbounddist=1)
16+
model.readProblem(os.path.join("tests", "data", "10teams.mps"))
2117

2218
with pytest.raises(Exception):
2319
model.optimize()

0 commit comments

Comments
 (0)