Advanced Computing Platform for Theoretical Physics
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GiggleLiu
climin
Commits
8fbe2a76
Commit
8fbe2a76
authored
Jul 12, 2016
by
Maximilian Soelch
Browse files
python 3 fix for tests
parent
8ab1df0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_stops.py
View file @
8fbe2a76
...
...
@@ -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
}})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment