Skip to content

Commit

Permalink
tests: make varcount test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Tias Guns committed Dec 28, 2022
1 parent 3181cb9 commit d6d56c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def test_io_nempty(self):
os.remove(fname)

def test_io_counters(self):
_BoolVarImpl.counter = 0 # don't try this at home
_IntVarImpl.counter = 0 # don't try this at home
fname = join(self.tempdir, "model")
iv = cp.intvar(1,9, shape=3)
bv = cp.boolvar()
Expand Down

0 comments on commit d6d56c7

Please sign in to comment.