Skip to content

Commit ea2cdb7

Browse files
committed
fix tests
1 parent 2b50c16 commit ea2cdb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Wrappers/Python/test/test_algorithms.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,11 +1665,10 @@ def old_callback(iteration, objective, solution):
16651665

16661666
log = NamedTemporaryFile(delete=False)
16671667
log.close()
1668-
algo.run(20, callbacks=[callbacks.LogfileCallback(
1669-
log.name)], callback=old_callback)
1668+
algo.run(20, callbacks=[callbacks.LogfileCallback(log.name, interval=5)], callback=old_callback)
16701669
with open(log.name, 'r') as fd:
16711670
self.assertListEqual(
1672-
["64/83", "74/83", "83/83", ""],
1671+
['64/83', '69/83', '74/83', '79/83', '83/83', ''],
16731672
[line.lstrip().split(" ", 1)[0] for line in fd.readlines()])
16741673
unlink(log.name)
16751674

0 commit comments

Comments
 (0)