Advanced Computing Platform for Theoretical Physics

Commit 8fbe2a76 authored by Maximilian Soelch's avatar Maximilian Soelch
Browse files

python 3 fix for tests

parent 8ab1df0d
......@@ -29,8 +29,8 @@ def test_patience_increase():
def test_patience_deep():
vals = iter([{'foo': {'bar': 10}}] * 4).next
func = iter([10, 10, 10, 10]).next
vals = next(iter([{'foo': {'bar': 10}}] * 4))
func = next(iter([10, 10, 10, 10]))
stopper = Patience(('foo', 'bar'), 3, 2)
assert not stopper({'n_iter': 0, 'foo': {'bar': 10}})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment